diff options
Diffstat (limited to 'src/web.rs')
-rw-r--r-- | src/web.rs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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!( |