Moved the user request handler logic to its routes file