Files
TLA/bootstrap/app.php
T
Belupeti 4b2df8f9bd
Build / Build-image (push) Failing after 7s
some frontend
2026-08-09 19:48:30 +02:00

29 lines
960 B
PHP

<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Http\Request;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
api: __DIR__.'/../routes/api.php',
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
//
})
->withExceptions(function (Exceptions $exceptions): void {
$exceptions->shouldRenderJsonWhen(
fn (Request $request) => $request->is('api/*'),
);
})
->withMiddleware(function (Middleware $middleware): void {
$middleware->preventRequestForgery(except: [
'api/*',
]);
//TODO EZT KITÖRÖLNI MAJD, TESZTELÉSHEZ NEM AKAROK CSRF TOKENT MERT A CURL NEM MEGY VELE SZÉPEN
})->create();