ApiAdmin/route/wikiRoute.php
2019-08-30 17:05:08 +08:00

36 lines
786 B
PHP

<?php
/**
* Wiki路由
* @since 2019-08-12
* @author zhaoxiang <zhaoxiang051405@gmail.com>
*/
use think\facade\Route;
Route::group('wiki', function() {
Route::rule(
'Api/login', 'wiki/Api/login', 'post'
);
Route::group('Api', [
'errorCode' => [
'wiki/Api/errorCode',
['method' => 'get']
],
'groupList' => [
'wiki/Api/groupList',
['method' => 'get']
],
'detail' => [
'wiki/Api/detail',
['method' => 'get']
],
'logout' => [
'wiki/Api/logout',
['method' => 'get']
]
])->middleware(['WikiAuth']);
//MISS路由定义
Route::miss('admin/Miss/index');
})->middleware('AdminResponse');