- Group employee routes under a prefix for better clarity. - Remove unnecessary blank lines and improve code formatting.
21 lines
570 B
PHP
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;
|