presentation-rust-webapps/simple_text_board/src/main.rs
2021-01-12 01:44:00 +01:00

13 lines
209 B
Rust

#![feature(proc_macro_hygiene, decl_macro)]
use rocket::{get, routes};
#[get("/")]
fn index() -> &'static str {
"Hello, world!"
}
fn main() {
rocket::ignite().mount("/", routes![index]).launch();
}