'use strict'; const model = require('../../controllers/dataService/index'); module.exports = function (app, router, opts, AuthCode) { app.fs.api.logAttr['GET/service-management'] = { content: '获取REST服务', visible: true }; router.get('/service-management', model.getServiceManagement(opts)); app.fs.api.logAttr['POST/service-management'] = { content: '编辑REST服务', visible: true }; router.post('/service-management', model.postServiceManagement(opts)) app.fs.api.logAttr['DEL/service-management/:id'] = { content: '删除REST服务', visible: true }; router.del('/service-management/:id', model.delServiceManagement(opts)) app.fs.api.logAttr['GET/lookField'] = { content: '获取表字段', visible: true }; router.get('/lookField', model.getLookField(opts)); };