A handler is the function that receives a request and produces a response. It reads the parameters, validates the inputs, calls the business logic, then builds the response with the right status code and body.
Example
function getClient(req, res) {
res.status(200).json({ id: req.params.id });
}