2020-05-27 17:08:51 +00:00
|
|
|
#![feature(proc_macro_hygiene, decl_macro)]
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate rocket;
|
|
|
|
|
|
|
|
#[get("/alive")]
|
|
|
|
fn alive() -> &'static str {
|
|
|
|
"OK"
|
|
|
|
}
|
|
|
|
|
2020-05-27 16:38:29 +00:00
|
|
|
fn main() {
|
2020-05-27 17:08:51 +00:00
|
|
|
rocket::ignite()
|
|
|
|
.mount("/", routes![index])
|
|
|
|
.launch();
|
2020-05-27 16:38:29 +00:00
|
|
|
}
|