chai-backend icon indicating copy to clipboard operation
chai-backend copied to clipboard

getallvideos in video controller question

Open mohitthakur9901 opened this issue 1 year ago • 2 comments

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 ?

mohitthakur9901 avatar Feb 09 '24 07:02 mohitthakur9901