From e5c71b08508db22a9fae50c73ad82d9d0dcd2550 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 1 Oct 2017 16:13:38 +0200 Subject: Initial launch! --- src/main.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main.rs (limited to 'src') diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..03966fc --- /dev/null +++ b/src/main.rs @@ -0,0 +1,15 @@ +#![feature(plugin)] +#![plugin(rocket_codegen)] + +extern crate rocket; + +#[get("/")] +fn index() -> &'static str { + "Hello, for faen!" +} + +fn main() { + rocket::ignite() + .mount("/", routes![index]) + .launch(); +} -- cgit v1.2.3