Browse Source

route

master
wally 4 years ago
parent
commit
67001c719e
  1. 5
      .idea/workspace.xml
  2. 5
      route.js

5
.idea/workspace.xml

@ -2,9 +2,6 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="f6554b0f-8e9f-4d17-af66-170afe4c12e9" name="默认变更列表" comment=""> <list default="true" id="f6554b0f-8e9f-4d17-af66-170afe4c12e9" name="默认变更列表" comment="">
<change afterPath="$PROJECT_DIR$/data/config-function.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/data/config-network.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/route.js" beforeDir="false" afterPath="$PROJECT_DIR$/route.js" afterDir="false" /> <change beforePath="$PROJECT_DIR$/route.js" beforeDir="false" afterPath="$PROJECT_DIR$/route.js" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
@ -57,7 +54,7 @@
<workItem from="1634872549457" duration="1798000" /> <workItem from="1634872549457" duration="1798000" />
<workItem from="1635121020817" duration="1948000" /> <workItem from="1635121020817" duration="1948000" />
<workItem from="1635211315342" duration="2957000" /> <workItem from="1635211315342" duration="2957000" />
<workItem from="1635390008514" duration="1142000" /> <workItem from="1635390008514" duration="1587000" />
</task> </task>
<servers /> <servers />
</component> </component>

5
route.js

@ -39,3 +39,8 @@ get('/gateway/corrosion/config/network').to.json(configNetwork);
// 获取功能配置参数 // 获取功能配置参数
get('/gateway/corrosion/config/function').to.json(configFunction); get('/gateway/corrosion/config/function').to.json(configFunction);
// 提交网络配置参数
post('/gateway/corrosion/config/network').to.json({ code: 200, msg: 'ok' });
// 提交功能配置参数
post('/gateway/corrosion/config/function').to.json({ code: 200, msg: 'ok' });

Loading…
Cancel
Save