blob: d9747c9998b5a592495ed843d3fe6198e7fd151d (
plain) (
tree)
|
|
#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
extern crate rocket_blog;
#[get("/")]
fn index() -> &'static str {
"Hallo, for faen!"
}
fn main() {
rocket::ignite()
.manage(rocket_blog::init_db_pool())
.mount("/", routes![index])
.launch();
}
|