diff --git a/src/main.rs b/src/main.rs index 88301c7..fcee6f6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ use axum::extract::State; +use axum::response::Html; use axum::{ body::Full, http::{Response, StatusCode}, @@ -191,8 +192,8 @@ async fn metrics_handler(State(config): State) -> Result &'static str { - r#"/metrics"# +async fn homepage() -> Html<&'static str> { + Html(r#"/metrics"#) } async fn metrics(config: Config) -> Result, WsError> {