text: 'use strict';
  
  const express = require('express');
  const router = express.Router();
  const Ctrl = require('./log.controller');
  
  // 检查登陆
  const CheckLogin = require('../../../components/checkLogin');
  const mustLogin = CheckLogin.mustLogin;
  
  //检查权限
  const checkPermission = require('../../../components/checkPermission');
  
  router.get('/', mustLogin, checkPermission, Ctrl.index);
  router.get('/:id', mustLogin, checkPermission, Ctrl.show);
  
  module.exports = router;
  