From 73baa2f1533e6d2f277d37e89fffd0bed12aa390 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 26 Jul 2024 12:34:35 +1000 Subject: [PATCH] Added API stub configuration --- bootstrap/app.php | 1 + config/auth.php | 6 ++++++ routes/api.php | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index 6d8c408..ef99060 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -10,6 +10,7 @@ use App\Http\Middleware\{Role,SetSite}; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( web: __DIR__.'/../routes/web.php', + //api: __DIR__.'/../routes/api.php', commands: __DIR__.'/../routes/console.php', health: '/up', ) diff --git a/config/auth.php b/config/auth.php index 0ba5d5d..e6636c4 100644 --- a/config/auth.php +++ b/config/auth.php @@ -40,6 +40,12 @@ return [ 'driver' => 'session', 'provider' => 'users', ], + + 'api' => [ + 'driver' => 'passport', + 'provider' => 'users', + ], + ], /* diff --git a/routes/api.php b/routes/api.php index a59eeef..610746d 100644 --- a/routes/api.php +++ b/routes/api.php @@ -1,12 +1,12 @@