From 6c5d5f2e5807f2fddc9da5e06254ef1b3164a81b Mon Sep 17 00:00:00 2001 From: sam rolfe Date: Fri, 29 Aug 2025 14:27:02 +1000 Subject: [PATCH] Enable API routes in bootstrap/app.php --- bootstrap/app.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index c183276..d654276 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -7,12 +7,13 @@ use Illuminate\Foundation\Configuration\Middleware; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( web: __DIR__.'/../routes/web.php', + api: __DIR__.'/../routes/api.php', commands: __DIR__.'/../routes/console.php', health: '/up', ) - ->withMiddleware(function (Middleware $middleware): void { + ->withMiddleware(function (Middleware $middleware) { // }) - ->withExceptions(function (Exceptions $exceptions): void { + ->withExceptions(function (Exceptions $exceptions) { // })->create();