install api

This commit is contained in:
2025-04-28 13:20:33 +03:30
parent 0af16bbe8e
commit c966f38236
7 changed files with 228 additions and 3 deletions

View File

@@ -7,11 +7,12 @@ use Illuminate\Foundation\Configuration\Middleware;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
//
$middleware->web()->statefulApi();
})
->withExceptions(function (Exceptions $exceptions) {
//