四好公路
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
725 B

'use strict';
const report = require('../../controllers/report');
module.exports = function (app, router, opts) {
app.fs.api.logAttr['GET/report/list'] = { content: '获取上报列表', visible: false };
router.get('/report/list', report.reportList);
app.fs.api.logAttr['GET/report/:reportId/detail'] = { content: '获取上报详情', visible: false };
router.get('/report/:reportId//detail', report.reportDetail);
app.fs.api.logAttr['POST/report'] = { content: '创建上报', visible: false };
router.post('/report', report.createReport);
app.fs.api.logAttr['DEL/report/:reportId'] = { content: '删除上报', visible: false };
router.del('/report/:reportId', report.deleteReport);
}