|
|
@ -4,7 +4,7 @@ $router->get('/', function () use ($router) { |
|
|
|
return $router->app->version(); |
|
|
|
return $router->app->version(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$router->group(['prefix'=>'api'], function () use ($router) { |
|
|
|
$router->group(['prefix'=>'api', 'middleware' => 'cors'], function () use ($router) { |
|
|
|
$router->post('/login', 'AuthController@login'); |
|
|
|
$router->post('/login', 'AuthController@login'); |
|
|
|
|
|
|
|
|
|
|
|
$router->post('/menu/add', 'MenuController@add'); |
|
|
|
$router->post('/menu/add', 'MenuController@add'); |
|
|
|