(request: Request)
| 3654 | return data |
| 3655 | |
| 3656 | async def handle_artifacts(request: Request) -> JSONResponse: |
| 3657 | limit = int(request.query_params.get("limit", "50")) |
| 3658 | return JSONResponse({ |
| 3659 | "count": _artifacts.count(), |
| 3660 | "items": _artifacts.list(limit=max(1, min(limit, 200))), |
| 3661 | }) |
| 3662 | |
| 3663 | async def handle_artifact(request: Request) -> JSONResponse: |
| 3664 | artifact_id = request.path_params["artifact_id"] |