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() public function boot()
{ {
// $this->routes(function () {
}
/**
* Define the routes for the application.
*
* @return void
*/
public function map()
{
Route::middleware('web') Route::middleware('web')
->group(base_path('routes/web.php')); ->group(base_path('routes/web.php'));
Route::prefix('api') Route::prefix('api')
->middleware('api') ->middleware('api')
->group(base_path('routes/api.php')); ->group(base_path('routes/api.php'));
});
} }
} }