Skip to content

Commit

Permalink
Adiciona metodo get pra lista de assistir mais tarde
Browse files Browse the repository at this point in the history
Co-authored-by: PedroGusta <[email protected]>
  • Loading branch information
felipeJRdev committed Aug 9, 2024
1 parent 4476cbf commit 8b91a67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/controller/savedVideosController.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8b91a67

Please sign in to comment.