Routing
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
Route::get('/app/{path?}', function () {
|
||||
if (file_exists(__DIR__."/assets/index.html")) {
|
||||
$file = file_get_contents(__DIR__."/assets/index.html");
|
||||
return $file;
|
||||
}
|
||||
else
|
||||
App::abort(404);
|
||||
})->where('path', '.*');
|
||||
Reference in New Issue
Block a user