diff options
Diffstat (limited to 'src/bin/web.rs')
| -rw-r--r-- | src/bin/web.rs | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/bin/web.rs b/src/bin/web.rs index fed833b..243e4a2 100644 --- a/src/bin/web.rs +++ b/src/bin/web.rs @@ -1,11 +1,13 @@ + +use std::fs;  use axum::{      response::Html,      routing::get,      Router,  }; -async fn root_get() -> Html<&'static str> { -    Html("<h1>Hello, world!</h1>") +async fn root_get() -> Html<String> { +    Html(fs::read_to_string("front/index.html").unwrap())  }  #[tokio::main] | 
