Currently our /get-mentors end-point returns all the matched mentors, I would like to pass in a query parameter to tell the server how many mentors do we want to fetch
add a query limit to /get-mentors endpoint to limit the number of mentors sent to the front-end
/get-mentors?expertise=All&topic=-1&limit=10
should only send 10 mentors
Currently our
/get-mentors
end-point returns all the matched mentors, I would like to pass in a query parameter to tell the server how many mentors do we want to fetchadd a query limit to
/get-mentors
endpoint to limit the number of mentors sent to the front-end/get-mentors?expertise=All&topic=-1&limit=10
should only send 10 mentors
Files to edit: https://github.com/Rishabh-malhotraa/Vita/blob/main/api/src/controllers/api-controller.ts#L6 (and files in a client who is making a request to this endpoint )