12 lines
177 B
Rust
12 lines
177 B
Rust
|
#[macro_use] extern crate rocket;
|
||
|
|
||
|
#[get("/")]
|
||
|
fn hello() -> &'static str {
|
||
|
"Hello, world!"
|
||
|
}
|
||
|
|
||
|
#[launch]
|
||
|
fn rocket() -> _ {
|
||
|
rocket::build().mount("/", routes![hello])
|
||
|
}
|