diff --git a/routes/web.php b/routes/web.php index 743fafe..192ef4d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -4,7 +4,7 @@ $router->get('/', function () use ($router) { 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('/menu/add', 'MenuController@add');