From dd91be366b3a3277b1b20d50deeb48ee5e9584d4 Mon Sep 17 00:00:00 2001 From: ArloFilley Date: Thu, 29 Sep 2022 10:24:20 +0100 Subject: [PATCH] added functionality and file structure --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index f5047ae..bde0601 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,13 @@ #[macro_use] extern crate rocket; use rocket::{Rocket, Build}; +#[get("/")] +fn index() -> String { + format!("Hello world") +} + #[launch] fn rocket() -> Rocket { rocket::build() + .mount("/", routes![index]) } \ No newline at end of file