'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); }