Skip to content

Instantly share code, notes, and snippets.

@BrianKopp
Created June 7, 2020 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianKopp/b992ddb84a43f8a634812f7b04476d3b to your computer and use it in GitHub Desktop.
Save BrianKopp/b992ddb84a43f8a634812f7b04476d3b to your computer and use it in GitHub Desktop.
RustRusotoRocket_RocketInit
#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use] extern crate rocket;
fn main() {
rocket::ignite().mount("/", routes![health_check]).launch();
}
#[get("/health")]
fn health_check() -> &'static str {
"Healthy"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment