Skip to main content

handle_get_tenant

Function handle_get_tenant 

Source
pub async fn handle_get_tenant(
    __arg0: State<Arc<Context>>,
    __arg1: Path<Uuid>,
) -> Json<Vec<TenantResponse>>
Expand description

Handle GET /tenants/resources/tenants/v1/{id}

Like Frontegg, responds with a JSON array: one element if the tenant exists, and empty otherwise. The frontegg client pops the single element and maps an empty array to a 404 error.