'use strict'; const operationLog = require('../../controllers/operationLogs/index'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/operationLog'] = { content: '获取操作日志', visible: false }; router.get('/operationLog', operationLog.getLog); // app.fs.api.logAttr['POST/operationLog'] = { content: '创建操作日志', visible: false }; // router.post('/operationLog', operationLog.creatLog); // app.fs.api.logAttr['PUT/operationLog/:id'] = { content: '修改操作日志', visible: false }; // router.put('/operationLog/:id', operationLog.updateLog); // app.fs.api.logAttr['DEL/operationLog/:ids'] = { content: '删除操作日志', visible: false }; // router.del('/operationLog/:ids', operationLog.deleteLog); };