wangchuanbao 1 year ago
parent
commit
0712cba344
3 changed files with 7 additions and 2 deletions
  1. 1 1
      composer.json
  2. 2 1
      config/route.php
  3. 4 0
      route/api.php

+ 1 - 1
composer.json

@@ -35,7 +35,7 @@
     "illuminate/redis": "^8.83",
     "topthink/think-validate": "^2.0",
     "symfony/translation": "^5.4",
-    "tinywan/jwt": "^1.6"
+    "tinywan/jwt": "^1.9.1"
   },
   "suggest": {
     "ext-event": "For better performance. "

+ 2 - 1
config/route.php

@@ -12,7 +12,8 @@
  * @license   http://www.opensource.org/licenses/mit-license.php MIT License
  */
 
-use Webman\Route;
+require_once base_path('/route/api.php');
+
 
 
 

+ 4 - 0
route/api.php

@@ -0,0 +1,4 @@
+<?php
+
+use Webman\Route;
+