schala/src/webapp.rs

9 lines
134 B
Rust
Raw Normal View History

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