Refactor webhook_namespace_handler function name

This commit is contained in:
sHa
2024-03-12 22:31:04 +00:00
parent 63edfb4631
commit 18462e60ec

2
app.py
View File

@@ -48,7 +48,7 @@ def store_last_request(
@app.patch("/{namespace}", status_code=status.HTTP_200_OK) @app.patch("/{namespace}", status_code=status.HTTP_200_OK)
@app.options("/{namespace}", status_code=status.HTTP_200_OK) @app.options("/{namespace}", status_code=status.HTTP_200_OK)
@app.head("/{namespace}", status_code=status.HTTP_200_OK) @app.head("/{namespace}", status_code=status.HTTP_200_OK)
async def webhook_namespace_handler(request: Request, response: Response, namespace: str = "requests"): async def catch(request: Request, response: Response, namespace: str = "requests"):
try: try:
json = await request.json() json = await request.json()
except: except: