consolidate to a single method

This commit is contained in:
Taylor Otwell 2020-07-14 14:00:47 -05:00
parent 880cc1d3d8
commit a9abc85301
1 changed files with 7 additions and 15 deletions

View File

@ -23,21 +23,13 @@ class RouteServiceProvider extends ServiceProvider
*/
public function boot()
{
//
}
/**
* Define the routes for the application.
*
* @return void
*/
public function map()
{
$this->routes(function () {
Route::middleware('web')
->group(base_path('routes/web.php'));
Route::prefix('api')
->middleware('api')
->group(base_path('routes/api.php'));
});
}
}