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.
20 lines
839 B
20 lines
839 B
|
|
'use strict';
|
|
|
|
const monitor = require('../../controllers/monitor');
|
|
|
|
module.exports = function (app, router, opts) {
|
|
|
|
app.fs.api.logAttr['GET/project/allStructures'] = { content: '获取对应项目的结构物', visible: true };
|
|
router.get('/project/allStructures', monitor.getStructures);
|
|
|
|
|
|
app.fs.api.logAttr['GET/structure/factors'] = { content: '获取对应的监测因素', visible: true };
|
|
router.get('structure/factors', monitor.getFactors);
|
|
|
|
app.fs.api.logAttr['GET/structure/factors/sensors'] = { content: '获取对应的点位', visible: true };
|
|
router.get('structure/factors/sensors', monitor.getSensors);
|
|
|
|
app.fs.api.logAttr['GET/structure/factors/sensors/data'] = { content: '获取对应点位的设备', visible: true };
|
|
router.get('structure/factors/sensors/data', monitor.getMonitorData);
|
|
}
|