|
142 | 142 | CREATE_EMAIL_PASSWORD_USER, |
143 | 143 | CREATE_PASSWORDLESS_USER, |
144 | 144 | UNLINK_USER, |
| 145 | + USERROLES_LIST_API, |
145 | 146 | USERROLES_PERMISSIONS_API, |
146 | 147 | USERROLES_REMOVE_PERMISSIONS_API, |
147 | 148 | USERROLES_ROLE_API, |
@@ -198,6 +199,18 @@ def get_apis_handled(self) -> List[APIHandled]: |
198 | 199 | DASHBOARD_API, |
199 | 200 | False, |
200 | 201 | ), |
| 202 | + APIHandled( |
| 203 | + NormalisedURLPath(get_api_path_with_dashboard_base("/roles")), |
| 204 | + "get", |
| 205 | + DASHBOARD_API, |
| 206 | + False, |
| 207 | + ), |
| 208 | + APIHandled( |
| 209 | + NormalisedURLPath(get_api_path_with_dashboard_base("/tenants")), |
| 210 | + "get", |
| 211 | + DASHBOARD_API, |
| 212 | + False, |
| 213 | + ), |
201 | 214 | APIHandled( |
202 | 215 | NormalisedURLPath(get_api_path_with_dashboard_base(SIGN_IN_API)), |
203 | 216 | "post", |
@@ -442,6 +455,12 @@ def get_apis_handled(self) -> List[APIHandled]: |
442 | 455 | USERROLES_REMOVE_PERMISSIONS_API, |
443 | 456 | False, |
444 | 457 | ), |
| 458 | + APIHandled( |
| 459 | + NormalisedURLPath(get_api_path_with_dashboard_base(USERROLES_LIST_API)), |
| 460 | + "get", |
| 461 | + USERROLES_LIST_API, |
| 462 | + False, |
| 463 | + ), |
445 | 464 | APIHandled( |
446 | 465 | NormalisedURLPath(get_api_path_with_dashboard_base(USERROLES_ROLE_API)), |
447 | 466 | "put", |
@@ -583,6 +602,8 @@ async def handle_api_request( |
583 | 602 | api_function = create_passwordless_user |
584 | 603 | elif request_id == UNLINK_USER: |
585 | 604 | api_function = handle_user_unlink_get |
| 605 | + elif request_id == USERROLES_LIST_API: |
| 606 | + api_function = get_all_roles_api |
586 | 607 | elif request_id == USERROLES_PERMISSIONS_API: |
587 | 608 | api_function = get_permissions_for_role_api |
588 | 609 | elif request_id == USERROLES_REMOVE_PERMISSIONS_API: |
|
0 commit comments