Browse Source

add cors middleware to public

pull/3/head
satori 2 years ago
parent
commit
53e13f4f5b
  1. 2
      routes/web.php

2
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');

Loading…
Cancel
Save