aboutsummaryrefslogtreecommitdiff
path: root/src/web.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/web.rs')
-rw-r--r--src/web.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/web.rs b/src/web.rs
index b0d2ca9..8aa7a2a 100644
--- a/src/web.rs
+++ b/src/web.rs
@@ -1,10 +1,9 @@
use crate::{log::LOG, Check, Config, Service, Status, STATUS};
-use axum::response::Html;
use chrono::SubsecRound;
use markup::{doctype, Render};
use std::{collections::BTreeMap, ops::Deref, sync::Arc};
-pub async fn send_html_page(config: Arc<Config>) -> Html<String> {
+pub async fn make_html_page(config: Arc<Config>) -> String {
let mut out = String::new();
let status = STATUS.read().await;
let status = status.deref();
@@ -54,7 +53,7 @@ pub async fn send_html_page(config: Arc<Config>) -> Html<String> {
}
.render(&mut out)
.unwrap();
- Html(out)
+ out
}
markup::define!(