diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2017-10-01 16:13:38 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2017-10-01 16:13:38 +0200 |
commit | e5c71b08508db22a9fae50c73ad82d9d0dcd2550 (patch) | |
tree | 57773f96e79bb5b9fa61eb1f6bc0507ae285446c /src | |
download | rocket-blog-e5c71b08508db22a9fae50c73ad82d9d0dcd2550.tar.gz rocket-blog-e5c71b08508db22a9fae50c73ad82d9d0dcd2550.tar.bz2 rocket-blog-e5c71b08508db22a9fae50c73ad82d9d0dcd2550.zip |
Initial launch!
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 15 |
1 files changed, 15 insertions, 0 deletions
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(); +} |