Error message
This commit is contained in:
parent
2000c4eb87
commit
5166c7d0c5
@ -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', '.*');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user