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.
 
 
 
 

33 lines
1.7 KiB

'use strict';
const projectBind = require('../../controllers/projectManagement/projectBind');
const projectPublish = require('../../controllers/projectManagement/projectPublish');
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)
app.fs.api.logAttr['GET/project/type'] = { content: '获取项目类型', visible: false }
router.get('/project/type', projectPublish.getProjectType)
app.fs.api.logAttr['GET/project/publish/list'] = { content: '获取项目发布列表', visible: false }
router.get('/project/publish/list', projectPublish.getProjectPublishList)
app.fs.api.logAttr['POST/project/publish/list'] = { content: '新增或编辑项目', visible: false }
router.post('/project/publish/list', projectPublish.postProjectPublish)
app.fs.api.logAttr['DEL/project/publish/:id'] = { content: '删除项目', visible: false }
router.del('/project/publish/:id', projectPublish.delProjectPublish)
}