update routes mapping
This commit is contained in:
parent
072f9659de
commit
24c7ff1ef3
@ -14,14 +14,11 @@
|
||||
*/
|
||||
|
||||
$router->get('/', function () {
|
||||
return view('app');
|
||||
});
|
||||
$router->get('/search', function () {
|
||||
return view('app');
|
||||
return redirect('/search');
|
||||
});
|
||||
|
||||
$router->group(['prefix' => 'search'], function () use ($router) {
|
||||
$router->get('/{id}', function() {return view('app');});
|
||||
$router->get('/search[/{id}]', function () {
|
||||
return view('app');
|
||||
});
|
||||
|
||||
$router->group(['prefix' => 'api'], function () use ($router) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user