You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
814 B
24 lines
814 B
'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));
|
|
|
|
|
|
};
|
|
|
|
|
|
|