file routes refactoring

This commit is contained in:
Peter Papp
2021-03-07 11:18:44 +01:00
parent 1f615c54af
commit 9f1174b547
5 changed files with 106 additions and 47 deletions

View File

@@ -50,6 +50,8 @@ class RouteServiceProvider extends ServiceProvider
$this->mapMaintenanceRoutes();
$this->mapFileRoutes();
$this->mapWebRoutes();
}
@@ -74,6 +76,13 @@ class RouteServiceProvider extends ServiceProvider
->group(base_path('routes/maintenance.php'));
}
protected function mapFileRoutes()
{
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/file.php'));
}
/**
* Define the "api" routes for the application.
*