From c8f5617494887c86628a63967f8e9369751be7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vinicius=20Assump=C3=A7=C3=A3o=20de=20Araujo?= <78980842+viniman27@users.noreply.github.com> Date: Fri, 9 Aug 2024 10:00:49 -0300 Subject: [PATCH] Adequacao savedVideosController.py --- src/controller/savedVideosController.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/controller/savedVideosController.py b/src/controller/savedVideosController.py index 89b514b..0eb7cc6 100644 --- a/src/controller/savedVideosController.py +++ b/src/controller/savedVideosController.py @@ -54,8 +54,3 @@ def remove_from_favorites(video_id: str, user_id: str = Query(...), db: Session video_id = video_id.strip() savedVideosRepository.remove_favorite(db=db, video_id=video_id, user_id=user_id) return {"message": "Removed from favorites"} - -@favorite.get("/") -def get_favorite_videos(user_id: str = Query(...), db: Session = Depends(get_db)): - videos = savedVideosRepository.get_favorite_videos(db=db, user_id=user_id) - return {"videoList": videos} \ No newline at end of file