Created a new class UserController.java to handle the user requests