'use strict'; const vehicle = require('../../controllers/data/vehicle'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/vehicle'] = { content: '获取运政列表', visible: true }; router.get('/vehicle', vehicle.get); app.fs.api.logAttr['put/vehicle'] = { content: '编辑运政数据', visible: true }; router.put('/vehicle', vehicle.edit); app.fs.api.logAttr['DEL/vehicle/:vehicleId'] = { content: '删除运政数据', visible: false }; router.del('/vehicle/:vehicleId', vehicle.del); };