mirror of
https://github.com/shadoll/scatcher.git
synced 2025-12-20 06:29:59 +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)
|
@app.get("/api/__history/{namespace}", status_code=status.HTTP_200_OK)
|
||||||
async def history(
|
async def history(
|
||||||
response: Response,
|
response: Response,
|
||||||
id: int = 0,
|
id: int | None = None,
|
||||||
namespace: str = "requests",
|
namespace: str = "requests",
|
||||||
) -> Answer | RequestData | list[RequestData]:
|
) -> Answer | RequestData | list[RequestData]:
|
||||||
if not check_namespace(namespace):
|
if not check_namespace(namespace):
|
||||||
|
|||||||
Reference in New Issue
Block a user