repair loading index (backend)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user