update routes mapping
This commit is contained in:
parent
072f9659de
commit
24c7ff1ef3
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user