From 6797e6a95204caf6e6232823a0ac53993af44e30 Mon Sep 17 00:00:00 2001 From: ArloFilley Date: Thu, 29 Sep 2022 10:39:18 +0100 Subject: [PATCH] added fileserver and index.html --- src/main.rs | 2 +- website/index.html | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 website/index.html diff --git a/src/main.rs b/src/main.rs index 8d65cb3..730f991 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,6 +9,6 @@ fn index() -> String { #[launch] fn rocket() -> Rocket { rocket::build() - .mount("/", routes![index]) + // .mount("/", routes![index]) .mount("/", FileServer::from(relative!("website"))) } \ No newline at end of file diff --git a/website/index.html b/website/index.html new file mode 100644 index 0000000..36780bd --- /dev/null +++ b/website/index.html @@ -0,0 +1,12 @@ + + + + + + + Document + + + Hello Fileserver + + \ No newline at end of file