From 0ea65fcddf14d61584fbebdee1b11df2eb3b44a1 Mon Sep 17 00:00:00 2001 From: SadlyNotSappho Date: Tue, 28 Nov 2023 11:42:37 -0800 Subject: [PATCH] so THATS how it works --- src/main.rs | 4 ++-- web/css/style.css | 0 web/index.html | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 web/css/style.css create mode 100644 web/index.html diff --git a/src/main.rs b/src/main.rs index 5307caa..fe270ae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ use rocket::serde::{Deserialize, json::Json}; #[get("/")] fn hello() -> String { - fs::read_to_string("/home/sadlynotsappho/Projects/Web/website/root/index.html").unwrap() + fs::read_to_string("/home/sadlynotsappho/Projects/Rust/Projects/fossil/web/index.html").unwrap() // format!("hi!!!") } @@ -43,7 +43,7 @@ async fn login(info: Json) -> &'static str { async fn main() { let _rocket = rocket::build() .mount("/", routes![hello, get_book, delay, login]) - .mount("/root", FileServer::from("/home/sadlynotsappho/Projects/Web/website/root")) + .mount("/root", FileServer::from("/home/sadlynotsappho/Projects/Rust/Projects/fossil/web")) .launch() .await .unwrap(); diff --git a/web/css/style.css b/web/css/style.css new file mode 100644 index 0000000..e69de29 diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..0bfb225 --- /dev/null +++ b/web/index.html @@ -0,0 +1,44 @@ + + + + + login test + + + + + + + + + hiii +
+
+ + +
+
+ + +
+
+ +
+ + + +