diff --git a/src/routes.rs b/src/routes.rs index 1e6ffdb..a6bb458 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -93,8 +93,12 @@ fn check_method(event: &nostr::Event, method: &str) -> bool { } #[rocket::get("/")] -async fn root() -> &'static str { - "Hello welcome to void_cat_rs" +async fn root() -> Result { + if let Ok(f) = NamedFile::open("./ui/index.html").await { + Ok(f) + } else { + Err(Status::InternalServerError) + } } #[rocket::get("/")] diff --git a/ui/index.html b/ui/index.html index fa5f917..099876b 100644 --- a/ui/index.html +++ b/ui/index.html @@ -2,9 +2,17 @@ - Test Page + void_cat_rs + - +

+ Welcome to void_cat_rs +

\ No newline at end of file