diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index e7a11a9..af7b49a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,11 @@ -fn main() { - println!("Hello, world!"); +#[macro_use] extern crate rocket; + +#[launch] +fn rocket() -> _ { + rocket::build().mount("/", routes![index]) +} + +#[get("/")] +fn index() -> &'static str { + "Hello, world!" } |
