Remove deferrable.

This commit is contained in:
James Cole
2024-03-17 11:44:58 +01:00
parent bc7875b17b
commit ab2772abe0
33 changed files with 107 additions and 115 deletions

View File

@@ -32,7 +32,7 @@ use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
public const string HOME = '/';
protected $namespace = '';
protected $namespace = '';
/**
* Define the routes for the application.
@@ -41,18 +41,21 @@ class RouteServiceProvider extends ServiceProvider
{
$this->routes(function (): void {
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'))
;
Route::prefix('api/v1/cron')
->middleware('api_basic')
->namespace($this->namespace)
->group(base_path('routes/api-noauth.php'));
->middleware('api_basic')
->namespace($this->namespace)
->group(base_path('routes/api-noauth.php'))
;
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
->namespace($this->namespace)
->group(base_path('routes/web.php'))
;
});
}
}