Ver Fonte

更改路由

liuyu há 5 anos atrás
pai
commit
58b71a4a75
1 ficheiros alterados com 1 adições e 1 exclusões
  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/log', controller.optlog); // index、create、show、destroy
+  router.resources('optlog', '/api/logs', controller.optlog); // index、create、show、destroy
 };