mirror of
https://github.com/shadoll/scatcher.git
synced 2025-12-20 01:25:59 +00:00
Refactor webhook_namespace_handler function name
This commit is contained in:
2
app.py
2
app.py
@@ -48,7 +48,7 @@ def store_last_request(
|
||||
@app.patch("/{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)
|
||||
async def webhook_namespace_handler(request: Request, response: Response, namespace: str = "requests"):
|
||||
async def catch(request: Request, response: Response, namespace: str = "requests"):
|
||||
try:
|
||||
json = await request.json()
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user