Skip to content

Commit

Permalink
add HEAD endpoint for check web tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Sep 26, 2023
1 parent a3c8071 commit cbbfa85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit cbbfa85

Please sign in to comment.