Add health endpoint.

This commit is contained in:
Syfaro 2021-07-27 23:07:02 -04:00
parent 1329bd2de6
commit f144ba43b5

View File

@ -152,6 +152,8 @@ async fn main() {
app.with(middlewares::TidePrometheusMiddleware);
app.at("/search").get(search);
app.at("/health").get(|_| async { Ok("OK") });
app.listen(&http_listen)
.await
.expect_or_log("could not start web server");