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.
19 lines
851 B
19 lines
851 B
1 year ago
|
'use strict';
|
||
|
|
||
|
const AIOTOverview = require('../../controllers/AIOTOverview/AIOTOverview');
|
||
|
|
||
|
module.exports = function (app, router, opts) {
|
||
|
app.fs.api.logAttr['GET/things/deploy'] = { content: '获取智能断路器', visible: true };
|
||
|
router.get('/things/deploy', AIOTOverview.getThingsDeploy);
|
||
|
|
||
|
app.fs.api.logAttr['GET/things/status'] = { content: '获取设备在离线', visible: true };
|
||
|
router.get('/things/status', AIOTOverview.getThingStatus);
|
||
|
|
||
|
app.fs.api.logAttr['POST/things/card'] = { content: '获取物联网卡相关信息', visible: true };
|
||
|
router.post('/things/card', AIOTOverview.getCardInfo);
|
||
|
|
||
|
//空开设备查询状态和开关设备
|
||
|
app.fs.api.logAttr['POST/capabilities/invoke'] = { content: '及时采集', visible: true };
|
||
|
router.post('/capabilities/invoke', AIOTOverview.createInvoke);
|
||
|
|
||
|
};
|