'use strict'; const task = require('../../controllers/metadataAcquisition/task'); module.exports = function (app, router, opts, AuthCode) { app.fs.api.logAttr['POST/meta/acq/task'] = { content: '增加采集任务信息', visible: true }; router.post('/meta/acq/task', task.addAcquisitionTask(opts)) //获取采集任务列表 app.fs.api.logAttr['GET/meta/acq/tasks'] = { content: '获取采集任务列表', visible: true }; router.get('/meta/acq/tasks', task.getAcquisitionTask(opts)); // 修改采集任务信息 app.fs.api.logAttr['PUT/acq/task/:id'] = { content: '修改采集任务信息', visible: true }; router.put('/acq/task/:id', task.editAcquisitionTask(app)) // 删除采集任务信息 app.fs.api.logAttr['DEL/acq/task/:id'] = { content: '删除采集任务信息', visible: true }; router.del('acq/task/:id', task.deleteAcquisitionTask(app)) };