Skip to content

Commit

Permalink
Adequacao savedVideosController.py
Browse files Browse the repository at this point in the history
  • Loading branch information
viniman27 authored Aug 9, 2024
1 parent 79ee071 commit c8f5617
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/controller/savedVideosController.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit c8f5617

Please sign in to comment.