mirror of
https://github.com/shadoll/scatcher.git
synced 2025-12-20 03:26: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.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:
|
||||||
|
|||||||
Reference in New Issue
Block a user