<?php

declare(strict_types=1);

use Illuminate\Http\JsonResponse;
use Illuminate\Support\Facades\Route;

/*
| Web Routes
|
| The React application is mounted in app.blade.php. Any web request not handled
| by a specific route (such as /sanctum/csrf-cookie or /up) falls back to serving
| the React SPA. All REST API endpoints live under routes/api.php.
*/

Route::fallback(fn () => view('app'));

