|
|
@ -21,7 +21,7 @@ $router->group(['prefix'=>'api'], function () use ($router) { |
|
|
|
$router->post('/role-menu/search', 'RoleMenuController@search'); |
|
|
|
$router->post('/role-menu/search', 'RoleMenuController@search'); |
|
|
|
$router->get('/role-menu/get-role/{id}', 'RoleMenuController@listMenu'); |
|
|
|
$router->get('/role-menu/get-role/{id}', 'RoleMenuController@listMenu'); |
|
|
|
|
|
|
|
|
|
|
|
$router->group(['middleware' => 'auth'], function () use ($router) { |
|
|
|
$router->group(['middleware' => ['auth', 'cors']], function () use ($router) { |
|
|
|
|
|
|
|
|
|
|
|
$router->post('/role/search', 'RoleController@search'); |
|
|
|
$router->post('/role/search', 'RoleController@search'); |
|
|
|
$router->post('/role/add', 'RoleController@add'); |
|
|
|
$router->post('/role/add', 'RoleController@add'); |
|
|
|