chai-backend
chai-backend copied to clipboard
add video controllers like getAllVideos, publishAVideo, getVideoById, updateVideo, deleteVideo and togglePublishStatus
Video controllers added
- Retrieve Videos: Paginated and filtered video retrieval with sorting options.
- Publish Video: Upload video files and thumbnails to Cloudinary and save metadata to MongoDB.
- Update Video: Modify video details, including title, description, and thumbnail.
- Delete Video: Remove videos from the database and associated media from Cloudinary.
- Toggle Publish Status: Control the visibility of videos by toggling their publish status.