diff --git a/bootstrap/app.php b/bootstrap/app.php index 6d8c408..4d936b3 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 @@