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.
15 lines
602 B
15 lines
602 B
2 years ago
|
'use strict';
|
||
|
|
||
|
const equipment = require('../../controllers/equipment');
|
||
|
|
||
|
module.exports = function (app, router, opts) {
|
||
|
app.fs.api.logAttr['GET/equipment'] = { content: '获取设备维护记录', visible: true };
|
||
|
router.get('/equipment', equipment.getEquipment);
|
||
|
|
||
|
app.fs.api.logAttr['POST/equipment'] = { content: '编辑或者新增设备维护记录', visible: true };
|
||
|
router.post('/equipment', equipment.editEquipment);
|
||
|
|
||
|
app.fs.api.logAttr['DEL/equipment/:id'] = { content: '删除设备维护记录', visible: true };
|
||
|
router.delete('/equipment/:id', equipment.delEquipment);
|
||
|
|
||
|
}
|