13 lines
209 B
Rust
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();
|
|
}
|