schala/src/webapp.rs

9 lines
134 B
Rust

#[get("/")]
fn index() -> &'static str {
"rocket test"
}
fn web_main() {
rocket::ignite().mount("/", routes![index]).launch();
}