From cbbfa85adbcced6f1a14490b2562542a70ce75e3 Mon Sep 17 00:00:00 2001 From: Devin Gaffney Date: Tue, 26 Sep 2023 16:12:00 -0700 Subject: [PATCH] add HEAD endpoint for check web tests --- lib/http.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/http.py b/lib/http.py index 65070de..1386ff0 100644 --- a/lib/http.py +++ b/lib/http.py @@ -47,6 +47,10 @@ async def process_item(message: Dict[str, Any]): else: return {"message": "No Message Callback, Passing"} +@app.head("/ping") +def process_item(): + return {"pong": 1} + @app.get("/ping") def process_item(): return {"pong": 1}