aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
blob: 711c34396721e2e77c6cd63bd445d6530da15e56 (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(conn: rocket_blog::DbConn) -> &'static str {
    "Hallo, for faen!"
}

fn main() {
    rocket::ignite()
        .manage(rocket_blog::init_db_pool())
        .mount("/", routes![index])
        .launch();
}