update routes mapping

This commit is contained in:
Rev 2021-12-22 16:19:03 +09:00
parent 072f9659de
commit 24c7ff1ef3

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) {