swap route order

This commit is contained in:
Taylor Otwell 2020-09-11 08:29:38 -05:00
parent b33852ecac
commit 292a5b26a9
1 changed files with 3 additions and 3 deletions

View File

@ -29,12 +29,12 @@ class RouteServiceProvider extends ServiceProvider
$this->configureRateLimiting();
$this->routes(function () {
Route::middleware('web')
->group(base_path('routes/web.php'));
Route::prefix('api')
->middleware('api')
->group(base_path('routes/api.php'));
Route::middleware('web')
->group(base_path('routes/web.php'));
});
}