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');