Added API stub configuration

This commit is contained in:
Deon George 2024-07-26 12:34:35 +10:00
parent 9380850395
commit 667109150d
3 changed files with 9 additions and 2 deletions

View File

@ -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',
)

View File

@ -40,6 +40,12 @@ return [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'passport',
'provider' => 'users',
],
],
/*

View File

@ -1,12 +1,12 @@
<?php
use Illuminate\Support\Facades\Route;
use Intuit\Controllers\Webhook;
use App\Http\Controllers\{AccountingController,
AdminController,
CheckoutController,
ProductController,
ResellerServicesController};
ProductController};
/*
|--------------------------------------------------------------------------