From c70228fed7f65ffb6da57463f604b322a82c777a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 10 Mar 2021 14:22:38 +0000 Subject: [PATCH] Add /_health endpoint --- snikket_web/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snikket_web/main.py b/snikket_web/main.py index 4eef595..f14ec5a 100644 --- a/snikket_web/main.py +++ b/snikket_web/main.py @@ -163,3 +163,7 @@ async def avatar(from_: str, code: str) -> quart.Response: response.set_data(data) return response + +@bp.route("/_health") +async def health() -> str: + return "OK"