Created
June 7, 2020 14:32
-
-
Save BrianKopp/b992ddb84a43f8a634812f7b04476d3b to your computer and use it in GitHub Desktop.
RustRusotoRocket_RocketInit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![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