运维服务中台
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.

14 lines
545 B

'use strict';
const push = require('../../controllers/push/config');
module.exports = function (app, router, opts) {
app.fs.api.logAttr['GET/push'] = { content: '获取推送配置列表', visible: true };
router.get('/push', push.list);
app.fs.api.logAttr['POST/push'] = { content: '新增/编辑推送配置', visible: true };
router.post('/push', push.edit);
app.fs.api.logAttr['PUT/push/:pushId'] = { content: '更改推送配置状态(禁用或删除)', visible: true };
router.put('/push/:pushId', push.state);
};