From 8237d5bf9023e7916cd972350041897608cceff7 Mon Sep 17 00:00:00 2001 From: Viner Abubakirov Date: Wed, 25 Feb 2026 12:20:17 +0500 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B1=D1=8B=D0=BB=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=8F=D1=82=D1=8C=20=D1=81=20GET=20=D0=BD?= =?UTF-8?q?=D0=B0=20POST=20=D0=B2=20video=5Fsize=20func?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/v2/endpoints/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/v2/endpoints/youtube.py b/app/api/v2/endpoints/youtube.py index cde2255..ae39031 100644 --- a/app/api/v2/endpoints/youtube.py +++ b/app/api/v2/endpoints/youtube.py @@ -17,6 +17,6 @@ async def download_video(data: DownloadRequest): async def video_resolutions(url: str): return {"resolutions": YouTubeService.resolutions(url)} -@router.get("/size") +@router.post("/size") async def video_size(data: DownloadRequest) -> dict[str, int]: return {"size": YouTubeService.filesize(data)}