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.

19 lines
939 B

'use strict';
const projectBind = require('../../controllers/projectBind/projectBind');
module.exports = function (app, router, opts) {
app.fs.api.logAttr['POST/anxinyun/project/list'] = { content: '获取安心云项目列表', visible: false }
router.post('/anxinyun/project/list', projectBind.findAnxinyunProject)
app.fs.api.logAttr['POST/anxinyun/project/relation'] = { content: '新增或编辑项目映射关系', visible: false }
router.post('/anxinyun/project/relation', projectBind.addorEditRelation)
app.fs.api.logAttr['GET/anxinyun/project/relation/list'] = { content: '获取项目映射关系列表', visible: false }
router.get('/anxinyun/project/relation/list', projectBind.getRelationList)
app.fs.api.logAttr['DELETE/anxinyun/project/relation/:id'] = { content: '删除项目映射关系', visible: false }
router.delete('/anxinyun/project/relation/:id', projectBind.deleteRelation)
}