guhongwei 4 years ago
parent
commit
fa3b60b41f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/router.js

+ 4 - 0
app/router.js

@@ -8,4 +8,8 @@ module.exports = app => {
   // 測試
   // 測試
   router.resources('test', '/api/servicezhwl/test', controller.test); // index、create、show、destroy
   router.resources('test', '/api/servicezhwl/test', controller.test); // index、create、show、destroy
   router.post('test', '/api/servicezhwl/test/update/:id', controller.test.update);
   router.post('test', '/api/servicezhwl/test/update/:id', controller.test.update);
+
+  // 用户表
+  router.resources('user', '/api/servicezhwl/user', controller.test); // index、create、show、destroy
+  router.post('user', '/api/servicezhwl/user/update/:id', controller.test.update);
 };
 };