A middleware for express that checks if the required parameters are set in the request.