Error message
This commit is contained in:
parent
2000c4eb87
commit
5166c7d0c5
16
routes.php
16
routes.php
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
Route::get('/app/{path?}', function () {
|
Route::get('/app/{path?}', function () {
|
||||||
if (file_exists(__DIR__."/assets/index.html")) {
|
if (file_exists(__DIR__ . '/assets/index.html')) {
|
||||||
$file = file_get_contents(__DIR__."/assets/index.html");
|
$file = file_get_contents(__DIR__ . '/assets/index.html');
|
||||||
return $file;
|
return $file;
|
||||||
}
|
} else {
|
||||||
else
|
App::abort(404, 'Could not find index.html. Is react compiled?');
|
||||||
App::abort(404);
|
}
|
||||||
})->where('path', '.*');
|
})->where('path', '.*');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user