rocket-pinboard/src/main.rs

16 lines
224 B
Rust
Raw Normal View History

2017-12-06 15:29:10 +01:00
#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[get("/")]
fn index() -> &'static str {
"Hello, world!"
}
fn main() {
rocket::ignite()
.mount("/", routes![index])
.launch();
}