mirror of
https://github.com/Syfaro/bkapi.git
synced 2024-11-05 06:33:30 +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.at("/search").get(search);
|
||||
app.at("/health").get(|_| async { Ok("OK") });
|
||||
|
||||
app.listen(&http_listen)
|
||||
.await
|
||||
.expect_or_log("could not start web server");
|
||||
|
Loading…
Reference in New Issue
Block a user