From 446dc4b47f456510396962fbce0137667130f05a Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Sun, 13 Jul 2025 19:07:12 +0000 Subject: [PATCH] Add healthcheck endpoint --- src/handlers/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index 2439685..b33edcd 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -31,6 +31,9 @@ async fn docs() -> &'static str { The current endpoints are: + GET /healthcheck + Returns OK when the API is running. + GET /v1/profile Return's the user's profile (username, name, avatar, banner, and URL). @@ -113,3 +116,7 @@ async fn docs() -> &'static str { " ) } + +async fn healthcheck() -> &'static str { + "OK" +}