Fix 404 error due to routes mapping #34

Merged
Ghost merged 4 commits from development into master 2021-12-27 09:26:38 -05:00
Showing only changes of commit 24c7ff1ef3 - Show all commits

View File

@ -14,14 +14,11 @@
*/ */
$router->get('/', function () { $router->get('/', function () {
return view('app'); return redirect('/search');
});
$router->get('/search', function () {
return view('app');
}); });
$router->group(['prefix' => 'search'], function () use ($router) { $router->get('/search[/{id}]', function () {
$router->get('/{id}', function() {return view('app');}); return view('app');
}); });
$router->group(['prefix' => 'api'], function () use ($router) { $router->group(['prefix' => 'api'], function () use ($router) {