Error message

This commit is contained in:
Kilian Hofmann 2021-08-13 13:17:59 +02:00
parent 2000c4eb87
commit 5166c7d0c5

View File

@ -1,10 +1,10 @@
<?php
Route::get('/app/{path?}', function () {
if (file_exists(__DIR__."/assets/index.html")) {
$file = file_get_contents(__DIR__."/assets/index.html");
if (file_exists(__DIR__ . '/assets/index.html')) {
$file = file_get_contents(__DIR__ . '/assets/index.html');
return $file;
} else {
App::abort(404, 'Could not find index.html. Is react compiled?');
}
else
App::abort(404);
})->where('path', '.*');