INNER CODE UNIT · Rust
all_secrets
FeatureProbe/FeatureProbe · server/src/http/mod.rs:126
async fn all_secrets<T>(
Extension(handler): Extension<T>,
) -> Result<Json<HashMap<String, String>>, FPServerError>
where
T: HttpHandler + Clone + Send + Sync + 'static,
{
handler.all_secrets().await
}
async fn root_handler() -> Html<&'static str> {
Html("<h1>Feature Probe Server</h1>")
}
async fn handler_404() -> impl IntoResponse {
(StatusCode::NOT_FOUND, "")
}
#[derive(Debug, Deserialize)]