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