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();