repair loading index (backend)

This commit is contained in:
M1n-0
2026-03-31 14:11:46 +02:00
parent d988aabac0
commit 67d1453c23

View File

@@ -20,7 +20,7 @@ async fn main() {
} }
async fn handler() -> Html<String> { async fn handler() -> Html<String> {
let html_content = read_html_from_file("../web/templates/view/index.html") let html_content = read_html_from_file("/web/templates/view/index.html")
.await .await
.unwrap_or_else(|_| "<h1>Error loading HTML file</h1>".to_string()); .unwrap_or_else(|_| "<h1>Error loading HTML file</h1>".to_string());
Html(html_content) Html(html_content)