likang лет назад: 2
Родитель
Сommit
8c63574af9
2 измененных файлов с 12 добавлено и 3 удалено
  1. 2 2
      catch/api/controller/Tool.php
  2. 10 1
      catch/api/route.php

+ 2 - 2
catch/api/controller/Tool.php

@@ -5,7 +5,7 @@
  * @Author: likang
  * @Date: 2022-06-09 14:58:24
  * @LastEditors: likang
- * @LastEditTime: 2022-06-10 09:16:00
+ * @LastEditTime: 2022-06-10 09:28:54
  */
 
 namespace catchAdmin\api\controller;
@@ -18,7 +18,7 @@ use catcher\base\CatchController;
 use PhpParser\Node\Expr\FuncCall;
 use Wrench;
 
-class Tool extends CatchController
+class Tool extends Base
 {
     /**
      * @Descripttion: 获取扳手列表

+ 10 - 1
catch/api/route.php

@@ -1,4 +1,12 @@
 <?php
+/*
+ * @Descripttion: 
+ * @version: 1.0.0
+ * @Author: likang
+ * @Date: 2022-06-09 10:11:32
+ * @LastEditors: likang
+ * @LastEditTime: 2022-06-10 09:27:11
+ */
 // +----------------------------------------------------------------------
 // | CatchAdmin [Just Like ~ ]
 // +----------------------------------------------------------------------
@@ -14,4 +22,5 @@ $router->group(function () use ($router){
 	// api路由
 	$router->get('api/getUserList', '\catchAdmin\api\controller\Api@getUserList');
 });
-$router->get('api/getUsers', '\catchAdmin\api\controller\Api@getUserList');
+$router->get('api/getUsers', '\catchAdmin\api\controller\Api@getUserList');
+$router->get('tool/getwrenchlist','\catchAdmin\api\controller\Tool@getWrenchList');