2025-03-11 12:30:50 +05:30
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Application;
|
|
|
|
|
use Illuminate\Foundation\Configuration\Exceptions;
|
|
|
|
|
use Illuminate\Foundation\Configuration\Middleware;
|
|
|
|
|
|
|
|
|
|
return Application::configure(basePath: dirname(__DIR__))
|
|
|
|
|
->withRouting(
|
2025-03-12 19:19:13 +05:30
|
|
|
web: __DIR__ . '/../routes/web.php',
|
|
|
|
|
api: __DIR__ . '/../routes/api.php',
|
|
|
|
|
commands: __DIR__ . '/../routes/console.php',
|
2025-03-11 12:30:50 +05:30
|
|
|
health: '/up',
|
|
|
|
|
)
|
|
|
|
|
->withMiddleware(function (Middleware $middleware) {
|
2025-03-12 19:19:13 +05:30
|
|
|
$middleware->alias([
|
|
|
|
|
|
|
|
|
|
'customerApiBasicAuth' => \App\Http\Middleware\CheckUserStatus::class,
|
|
|
|
|
'cors' => \App\Http\Middleware\CorsMiddleware::class,
|
|
|
|
|
|
|
|
|
|
]);
|
2025-03-11 12:30:50 +05:30
|
|
|
})
|
|
|
|
|
->withExceptions(function (Exceptions $exceptions) {
|
|
|
|
|
//
|
|
|
|
|
})->create();
|