2021-01-11 23:10:26 +01:00
|
|
|
#![feature(proc_macro_hygiene, decl_macro)]
|
|
|
|
|
|
|
|
use rocket::{get, routes};
|
|
|
|
|
|
|
|
#[get("/")]
|
|
|
|
fn index() -> &'static str {
|
|
|
|
"Hello, world!"
|
|
|
|
}
|
|
|
|
|
2021-01-11 22:48:48 +01:00
|
|
|
fn main() {
|
2021-01-11 23:10:26 +01:00
|
|
|
rocket::ignite().mount("/", routes![index]).launch();
|
2021-01-11 22:48:48 +01:00
|
|
|
}
|