fixed 修复路由BUG

This commit is contained in:
Zhao 2018-07-02 16:39:44 +08:00
parent 9a865e360e
commit b07a5952b7

View File

@ -11,11 +11,11 @@ $afterBehavior = [
Route::group('admin', function () use ($afterBehavior) { Route::group('admin', function () use ($afterBehavior) {
//一些带有特殊参数的路由写到这里 //一些带有特殊参数的路由写到这里
Route::rule([ Route::rule([
'admin/Login/index' => [ 'Login/index' => [
'admin/Login/index', 'admin/Login/index',
['method' => 'post'] ['method' => 'post']
], ],
'admin/Index/upload' => [ 'Index/upload' => [
'admin/Index/upload', 'admin/Index/upload',
[ [
'method' => 'post', 'method' => 'post',
@ -25,7 +25,7 @@ Route::group('admin', function () use ($afterBehavior) {
] ]
] ]
], ],
'admin/Login/logout' => [ 'Login/logout' => [
'admin/Login/logout', 'admin/Login/logout',
[ [
'method' => 'get', 'method' => 'get',