'use strict'; const roadMaintenance = require('../../controllers/roadMaintenance'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/road/maintenance/cost/query'] = { content: '获取上月道路养护费用', visible: false }; router.get('/road/maintenance/cost/query', roadMaintenance.getLastMonthCost); app.fs.api.logAttr['GET/road/maintenance/cost/nanchang/query'] = { content: '获取南昌县道路养护费用', visible: false }; router.get('/road/maintenance/cost/nanchang/query', roadMaintenance.getConcatData); app.fs.api.logAttr['GET/road/maintenance'] = { content: '获取南昌县道路养护数据', visible: false }; router.get('/road/maintenance', roadMaintenance.getRoadMaintenanceList); app.fs.api.logAttr['POST/road/maintenance'] = { content: '更新南昌县道路养护数据', visible: false }; router.post('/road/maintenance', roadMaintenance.updateRoadMaintenanceList); }