Neo-Poseidon/main.rs
Daniel Løvbrøtte Olsen 164cf5886d more types
2019-05-08 01:36:04 +02:00

20 lines
411 B
Rust

#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use] extern crate rocket;
#[macro_use] extern crate rocket_contrib;
mod game;
use rocket_contrib::serve::StaticFiles;
fn main() {
let myrocket = rocket::ignite().mount("/", StaticFiles::from("static"));
let myrocket = myrocket.mount("/api", routes![world]);
myrocket.launch();
}
#[get("/")]
fn world() -> &'static str {
"Hello, world!"
}