Browse Source

设备管理

master
wally 4 years ago
parent
commit
e7ad8d37e6
  1. 4
      .idea/workspace.xml
  2. 9
      route.js

4
.idea/workspace.xml

@ -3,8 +3,7 @@
<component name="ChangeListManager">
<list default="true" id="f6554b0f-8e9f-4d17-af66-170afe4c12e9" name="默认变更列表" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/data/config-function.js" beforeDir="false" afterPath="$PROJECT_DIR$/data/config-function.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/data/config-network.js" beforeDir="false" afterPath="$PROJECT_DIR$/data/config-network.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/route.js" beforeDir="false" afterPath="$PROJECT_DIR$/route.js" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -58,6 +57,7 @@
<workItem from="1635211315342" duration="2957000" />
<workItem from="1635390008514" duration="2287000" />
<workItem from="1635471570649" duration="1691000" />
<workItem from="1635731158702" duration="3617000" />
</task>
<servers />
</component>

9
route.js

@ -14,6 +14,15 @@ get('/gateway/tall3/v3.0/users/userId').to.json(user);
// 设备列表
get('/gateway/corrosion/devices').to.json(devices);
// 添加设备
post('/gateway/corrosion/devices').to.json(device);
// 更新设备信息
put('/gateway/corrosion/devices/all/:id').to.json(device);
// 删除设备信息
delete('/gateway/corrosion/devices/all/:id').to.json(device);
// 获取某个设备信息
get('/gateway/corrosion/devices/all/:id').to.json(device);

Loading…
Cancel
Save