mirror of
https://github.com/Syfaro/bkapi.git
synced 2024-11-05 22:53:31 +00:00
Add health endpoint.
This commit is contained in:
parent
1329bd2de6
commit
f144ba43b5
@ -152,6 +152,8 @@ async fn main() {
|
|||||||
app.with(middlewares::TidePrometheusMiddleware);
|
app.with(middlewares::TidePrometheusMiddleware);
|
||||||
|
|
||||||
app.at("/search").get(search);
|
app.at("/search").get(search);
|
||||||
|
app.at("/health").get(|_| async { Ok("OK") });
|
||||||
|
|
||||||
app.listen(&http_listen)
|
app.listen(&http_listen)
|
||||||
.await
|
.await
|
||||||
.expect_or_log("could not start web server");
|
.expect_or_log("could not start web server");
|
||||||
|
Loading…
Reference in New Issue
Block a user