- API routes refactoring part 3

This commit is contained in:
Peter Papp
2021-02-26 17:10:21 +01:00
parent 00e515e995
commit fd02fbfe08
4 changed files with 17 additions and 25 deletions

View File

@@ -49,6 +49,8 @@ class RouteServiceProvider extends ServiceProvider
$this->mapSetupWizardApiRoutes();
$this->mapUserApiRoutes();
$this->mapMaintenanceRoutes();
}
/**
@@ -65,6 +67,13 @@ class RouteServiceProvider extends ServiceProvider
->group(base_path('routes/web.php'));
}
protected function mapMaintenanceRoutes()
{
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/maintenance.php'));
}
/**
* Define the "api" routes for the application.
*