ldc-arcadia-api/bootstrap/app.php
Jérémy Munsch b2c11a52ad
refactor(api): restructure API routes and improve organization
- Group employee routes under a prefix for better clarity.
- Remove unnecessary blank lines and improve code formatting.
2026-08-13 09:35:09 +02:00

21 lines
570 B
PHP

<?php
declare(strict_types=1);
use Illuminate\Foundation\Application;
use Illuminate\Support\Env;
$app = Application::configure(Env::get('APP_BASE_PATH', dirname(__DIR__)))
->withRouting(
web: __DIR__ . '/../routes/web.php',
api: __DIR__ . '/../routes/api.php',
commands: __DIR__ . '/../routes/console.php',
health: '/up',
)
->withMiddleware(require __DIR__ . '/middlewares.php')
->withExceptions(require __DIR__ . '/exceptions.php')
->create();
$app->useAppPath($app->basePath('src/Presentation'));
return $app;