From de2e1903f1ef24ce70c3b3b79944fd6f494b5312 Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Tue, 29 Sep 2020 11:27:30 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=B7=BB=E5=8A=A0wiki=E9=83=A8=E5=88=86?= =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/wikiRoute.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 route/wikiRoute.php diff --git a/route/wikiRoute.php b/route/wikiRoute.php new file mode 100644 index 0000000..5025304 --- /dev/null +++ b/route/wikiRoute.php @@ -0,0 +1,24 @@ + + */ + +use think\facade\Route; + +Route::group('wiki', function() { + Route::rule( + 'Api/login', 'wiki/Api/login', 'post' + ); + Route::group('Api', function() { + Route::rule('login', 'wiki/Api/login', 'post'); + Route::rule('errorCode', 'wiki/Api/errorCode', 'get'); + Route::rule('groupList', 'wiki/Api/groupList', 'get'); + Route::rule('detail', 'wiki/Api/detail', 'get'); + Route::rule('logout', 'wiki/Api/logout', 'get'); + })->middleware(['WikiAuth']); + + //MISS路由定义 + Route::miss('admin/Miss/index'); +})->middleware('AdminResponse');