Fix for laravel routes

This commit is contained in:
2025-10-08 09:13:22 +02:00
parent 9491676956
commit cdcd34fa0f
3 changed files with 17 additions and 4 deletions
+4 -3
View File
@@ -2,6 +2,7 @@
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return ['Laravel' => app()->version()];
});
// Serve the Vue SPA for all non-API routes
Route::get('/{any}', function () {
return file_get_contents(public_path('index.html'));
})->where('any', '.*');