chai-backend
chai-backend copied to clipboard
getallvideos in video controller question
const getAllVideos = asyncHandler(async (req, res) => { const { page = 1, limit = 10, query, sortBy, sortType, userId } = req.query })
for what purpose we are using query parameter in req.query ?