chore: moved web stuff in its own dir

This commit is contained in:
əlemi 2024-12-03 02:42:43 +01:00
parent 28fb489dac
commit 501b185437
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 1 additions and 1 deletions

View file

@ -6,7 +6,7 @@ use crate::{db::Database, Config};
pub async fn serve(config: Config, db: Database, addr: &str) -> std::io::Result<()>{ pub async fn serve(config: Config, db: Database, addr: &str) -> std::io::Result<()>{
// whats a jinja // 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("%%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); .replacen("%%THRESHOLD%%", &config.threshold.unwrap_or(1000).to_string(), 1);