Move route defination files to /routes

This commit is contained in:
printempw 2017-06-27 19:48:18 +08:00
parent 3560db200c
commit 6aebb483a1
4 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ class RouteServiceProvider extends ServiceProvider
'middleware' => ['web', CheckSessionUserValid::class], 'middleware' => ['web', CheckSessionUserValid::class],
'namespace' => $this->namespace, 'namespace' => $this->namespace,
], function ($router) { ], function ($router) {
require app_path('Http/Routes/web.php'); require base_path('routes/web.php');
}); });
} }
@ -80,7 +80,7 @@ class RouteServiceProvider extends ServiceProvider
'middleware' => 'web', 'middleware' => 'web',
'namespace' => $this->namespace, 'namespace' => $this->namespace,
], function ($router) { ], function ($router) {
require app_path('Http/Routes/setup.php'); require base_path('routes/setup.php');
}); });
} }
@ -98,7 +98,7 @@ class RouteServiceProvider extends ServiceProvider
'middleware' => 'static', 'middleware' => 'static',
'namespace' => $this->namespace, 'namespace' => $this->namespace,
], function ($router) { ], function ($router) {
require app_path('Http/Routes/static.php'); require base_path('routes/static.php');
}); });
} }
} }