Refactored request handler to accept two params, request and data