Забыл поменять с GET на POST в video_size func

This commit is contained in:
Viner Abubakirov
2026-02-25 12:20:17 +05:00
parent 9f5c27df8c
commit 8237d5bf90

View File

@@ -17,6 +17,6 @@ async def download_video(data: DownloadRequest):
async def video_resolutions(url: str): async def video_resolutions(url: str):
return {"resolutions": YouTubeService.resolutions(url)} return {"resolutions": YouTubeService.resolutions(url)}
@router.get("/size") @router.post("/size")
async def video_size(data: DownloadRequest) -> dict[str, int]: async def video_size(data: DownloadRequest) -> dict[str, int]:
return {"size": YouTubeService.filesize(data)} return {"size": YouTubeService.filesize(data)}