diff --git a/src/main/java/edu/csupomona/cs480/controller/WebController.java b/src/main/java/edu/csupomona/cs480/controller/WebController.java index 97d6683fb..99c36cd96 100644 --- a/src/main/java/edu/csupomona/cs480/controller/WebController.java +++ b/src/main/java/edu/csupomona/cs480/controller/WebController.java @@ -71,6 +71,14 @@ User getUser(@PathVariable("userId") String userId) { User user = userManager.getUser(userId); return user; } + + @RequestMapping(value = "/Peter", method = RequestMethod.GET) + String peter() { + // You can replace this with other strings, + // and run the application locally to check your changes + // with the URL: http://localhost:8080/ + return "My name is Alex, have a nice day. /n This is what Alex would say, But I am not Alex. I AM GROOT, just kidding this is peter"; + } /** * This is an example of sending an HTTP POST request to @@ -141,4 +149,4 @@ ModelAndView getUserHomepage() { return modelAndView; } -} \ No newline at end of file +}