diff --git a/src/controller/savedVideosController.py b/src/controller/savedVideosController.py index 90be2b1..89b514b 100644 --- a/src/controller/savedVideosController.py +++ b/src/controller/savedVideosController.py @@ -27,6 +27,12 @@ def check_watch_later(video_id: str, user_id: str = Query(...), db: Session = De status = savedVideosRepository.check_watch_later_status(db=db, video_id=video_id, user_id=user_id) return {"status": status} + +@WatchLater.get("/") +def get_watch_later_videos(user_id: str = Query(...), db: Session = Depends(get_db)): + videos = savedVideosRepository.get_watch_later_videos(db=db, user_id=user_id) + return {"videoList": videos} + # início das requisições do favorite favorite = APIRouter(