Browse Source

更改路由

liuyu 5 năm trước cách đây
mục cha
commit
3f5823b82d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/router.js

+ 1 - 1
app/router.js

@@ -6,5 +6,5 @@
 module.exports = app => {
   const { router, controller } = app;
   router.get('/', controller.home.index);
-  router.resources('optlog', '/api/optlog', controller.optlog); // index、create、show、destroy
+  router.resources('optlog', '/api/log', controller.optlog); // index、create、show、destroy
 };