Skip to content

Instantly share code, notes, and snippets.

@trimoq
Created October 21, 2019 08:43
Show Gist options
  • Save trimoq/24cf7aabd2621a6687057952b09cbb75 to your computer and use it in GitHub Desktop.
Save trimoq/24cf7aabd2621a6687057952b09cbb75 to your computer and use it in GitHub Desktop.
minimalistic example
#[get("/health")]
fn health() -> &'static str {
"ok"
}
fn main() {
rocket::ignite()
.mount("/", routes![health])
.launch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment