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.
 
 
 
 
 

44 lines
2.0 KiB

'use strict';
const status = require('../../controllers/status');
const push = require('../../controllers/status/push');
module.exports = function (app, router, opts) {
app.fs.api.logAttr['GET/status'] = { content: '获取状态码', visible: false };
router.get('/status', status.get);
app.fs.api.logAttr['GET/status/simple_all'] = { content: '获取全部状态码简略信息', visible: false };
router.get('/status/simple_all', status.getSimpleAll);
app.fs.api.logAttr['PUT/status/banned'] = { content: '禁用状态码自定义', visible: false };
router.put('/status/banned', status.banned);
app.fs.api.logAttr['POST/status/custom'] = { content: '自定义状态码释义', visible: false };
router.post('/status/custom', status.paraphraseCustom);
app.fs.api.logAttr['POST/status/resolve'] = { content: '编辑解决方案', visible: false };
router.post('/status/resolve', status.resolveEdit);
app.fs.api.logAttr['GET/status/check'] = { content: '查取指定状态码信息', visible: false };
router.get('/status/check', status.statusCheck);
// 信鸽推送
app.fs.api.logAttr['PUT/status/push'] = { content: '编辑推送配置', visible: false };
router.put('/status/push', push.edit);
app.fs.api.logAttr['GET/status/push'] = { content: '获取推送配置', visible: false };
router.get('/status/push', push.get);
app.fs.api.logAttr['PUT/status/push/banned'] = { content: '禁用推送配置', visible: false };
router.put('/status/push/banned', push.banned);
app.fs.api.logAttr['DEL/status/push/:configId'] = { content: '删除推送配置', visible: false };
router.del('/status/push/:configId', push.del);
app.fs.api.logAttr['GET/status/push/:configId/copy'] = { content: '复制推送配置', visible: false };
router.get('/status/push/:configId/copy', push.copy);
app.fs.api.logAttr['GET/status/push/:configId/detail'] = { content: '获取推送记录', visible: false };
router.get('/status/push/:configId/log', push.pushLog);
// 信鸽推送 END
};