aboutsummaryrefslogblamecommitdiffstats
path: root/src/main.rs
blob: d9747c9998b5a592495ed843d3fe6198e7fd151d (plain) (tree)
1
2
3
4
5
6
7
8
9



                          
                         


                            
                      



                    
                                            


                                   
#![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();
}