mirror of
https://github.com/shadoll/scatcher.git
synced 2025-12-20 02:26:03 +00:00
Update id parameter in history endpoint
This commit is contained in:
2
app.py
2
app.py
@@ -166,7 +166,7 @@ async def last_requests(
|
||||
@app.get("/api/__history/{namespace}", status_code=status.HTTP_200_OK)
|
||||
async def history(
|
||||
response: Response,
|
||||
id: int = 0,
|
||||
id: int | None = None,
|
||||
namespace: str = "requests",
|
||||
) -> Answer | RequestData | list[RequestData]:
|
||||
if not check_namespace(namespace):
|
||||
|
||||
Reference in New Issue
Block a user