diff --git a/src/api.rs b/src/api.rs index 1d33e6f..0f14ff1 100644 --- a/src/api.rs +++ b/src/api.rs @@ -6,7 +6,7 @@ use crate::{db::Database, Config}; pub async fn serve(config: Config, db: Database, addr: &str) -> std::io::Result<()>{ // whats a jinja - let index = include_str!("../index.html") + let index = include_str!("../web/index.html") .replacen("%%DESCRIPTION%%", config.description.as_deref().unwrap_or("keeping track of your infra's up status"), 1) .replacen("%%THRESHOLD%%", &config.threshold.unwrap_or(1000).to_string(), 1); diff --git a/index.html b/web/index.html similarity index 100% rename from index.html rename to web/index.html