headless_lms_server::controllers::main_frontend::roles

Function fetch_pending

Source
pub async fn fetch_pending(
    pool: Data<PgPool>,
    query: Query<RoleQuery>,
    user: AuthUser,
) -> ControllerResult<Json<Vec<PendingRole>>>
Expand description
  • GET /api/v0/main-frontend/roles - Get all pending roles for the given domain.