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