about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app.ts b/src/app.ts
index 8ba2d8a..7250a62 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -145,7 +145,9 @@ export const server = {
         "http.user_agent": request.headers.get("user-agent"),
       },
     });
-    if (
+    if (pathname === "/health") {
+      return new Response("OK", { status: 200 });
+    } else if (
       config.redirect_other_hostnames &&
       request.headers.get("host") !== expectedHostURL.host
     ) {