Created
December 2, 2020 12:25
-
-
Save zupzup/fbdb6ec9aecf8065f9d9c20a98207483 to your computer and use it in GitHub Desktop.
Timeular Webhooks Server
This file contains hidden or 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
let health_route = warp::path!("health").and_then(health_handler); | |
warp::serve( | |
started_tracking_route | |
.or(stopped_tracking_route) | |
.or(health_route), | |
) | |
.run(([0, 0, 0, 0], 8000)) | |
.await; | |
Ok(()) | |
} | |
async fn health_handler() -> WebResult<impl Reply> { | |
Ok("OK") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment