Changeset View
Changeset View
Standalone View
Standalone View
src/routes/web.php
Show All 13 Lines | |||||
// We can handle every URL with the default action because | // We can handle every URL with the default action because | ||||
// we have client-side router (including 404 error handler). | // we have client-side router (including 404 error handler). | ||||
// This way we don't have to define any "deep link" routes here. | // This way we don't have to define any "deep link" routes here. | ||||
Route::group( | Route::group( | ||||
[ | [ | ||||
//'domain' => \config('app.domain'), | //'domain' => \config('app.domain'), | ||||
], | ], | ||||
function () { | function () { | ||||
Route::get('content/page/{id}', 'ContentController@pageContent'); | |||||
Route::fallback( | Route::fallback( | ||||
function () { | function () { | ||||
return view('root')->with('env', \App\Utils::uiEnv()); | return view('root')->with('env', \App\Utils::uiEnv()); | ||||
} | } | ||||
); | ); | ||||
} | } | ||||
); | ); |