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.

27 lines
1012 B

3 years ago
'use strict';
const application = require('../../controllers/application');
module.exports = function (app, router, opts) {
app.fs.api.logAttr['GET/application'] = { content: '获取应用信息', visible: false };
router.get('/application', application.get);
app.fs.api.logAttr['POST/application'] = { content: '创建/修改应用', visible: false };
router.post('/application', application.edit);
app.fs.api.logAttr['PUT/application'] = { content: '禁用应用', visible: false }
router.put('/application', application.put);
app.fs.api.logAttr['DEL/application/:appId'] = { content: '删除应用', visible: false };
router.del('/application/:appId', application.del);
3 years ago
app.fs.api.logAttr['GET/application/check'] = { content: '检查应用状态', visible: false };
router.get('/application/check', application.check);
app.fs.api.logAttr['POST/application'] = { content: '创建/修改应用', visible: false };
router.post('/application', application.edit);
3 years ago
};