feat: routes

This commit is contained in:
2026-06-06 13:00:01 +03:00
parent 83abcd02dd
commit 87b48e941e
22 changed files with 525 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
"""Download job endpoints. Heavy work is dispatched to arq workers."""
import uuid
from typing import Any
from fastapi import APIRouter
router = APIRouter(prefix="/downloads", tags=["downloads"])
@router.get("")
async def list_downloads() -> Any: ...
@router.post("")
async def create_download() -> Any: ...
@router.get("/{job_id}")
async def get_download(job_id: uuid.UUID) -> Any: ...
@router.delete("/{job_id}")
async def cancel_download(job_id: uuid.UUID) -> Any: ...
@router.post("/{job_id}/retry")
async def retry_download(job_id: uuid.UUID) -> Any: ...
@router.post("/pause")
async def pause_downloads() -> Any: ...
@router.post("/resume")
async def resume_downloads() -> Any: ...