Deon George 99dc13b297
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 58s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 2m51s
Create Docker Image / Final Docker Image Manifest (push) Successful in 8s
Initial implementation of API access to clrghouz with a whoami endpoint
2025-04-17 09:41:01 +10:00

32 lines
776 B
PHP

<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use App\Http\Middleware\{ActiveUser,AddUserToView};
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) {
$middleware->statefulApi();
})
->withMiddleware(function (Middleware $middleware) {
$middleware->appendToGroup('web', [
AddUserToView::class,
]);
$middleware->alias([
'activeuser' => ActiveUser::class,
]);
})
->withExceptions(function (Exceptions $exceptions) {
//
})->create();