aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
blob: d9747c9998b5a592495ed843d3fe6198e7fd151d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![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();
}