From 501b185437f8a4bea9e4d298724d9fb0d98fd8ce Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 3 Dec 2024 02:42:43 +0100 Subject: [PATCH] chore: moved web stuff in its own dir --- src/api.rs | 2 +- index.html => web/index.html | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename index.html => web/index.html (100%) 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