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.
17 lines
834 B
17 lines
834 B
'use strict';
|
|
|
|
const patrolTemplate = require('../../controllers/patrolManage/patrolTemplate');
|
|
|
|
module.exports = function (app, router, opts) {
|
|
app.fs.api.logAttr['GET/patrolTemplate'] = { content: '获取巡检模板', visible: false };
|
|
router.get('/patrolTemplate', patrolTemplate.getPatrolTemplate);
|
|
|
|
app.fs.api.logAttr['POST/patrolTemplate'] = { content: '新增巡检模板', visible: true };
|
|
router.post('/patrolTemplate', patrolTemplate.createPatrolTemplate);
|
|
|
|
app.fs.api.logAttr['PUT/patrolTemplate'] = { content: '修改巡检模板', visible: true };
|
|
router.put('/patrolTemplate', patrolTemplate.updatePatrolTemplate);
|
|
|
|
app.fs.api.logAttr['DELETE/patrolTemplate/:id'] = { content: '删除巡检模板', visible: true };
|
|
router.del('/patrolTemplate/:id', patrolTemplate.delPatrolTemplate);
|
|
};
|