diff options
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/controllers/SignUp.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/SignUp.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/SignUp.java b/juick-www/src/main/java/com/juick/www/controllers/SignUp.java index 4c20e513..d07c3227 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/SignUp.java +++ b/juick-www/src/main/java/com/juick/www/controllers/SignUp.java @@ -27,8 +27,8 @@ import com.juick.www.Utils; import com.juick.www.WebApp; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; import javax.inject.Inject; import javax.servlet.http.Cookie; @@ -52,7 +52,7 @@ public class SignUp { MessagesService messagesService; - @RequestMapping(value = "/signup", method = RequestMethod.GET) + @GetMapping("/signup") protected String doGet(HttpServletRequest request, HttpServletResponse response, ModelMap model) { com.juick.User visitor = UserUtils.getCurrentUser(); @@ -91,7 +91,7 @@ public class SignUp { return "views/signup"; } - @RequestMapping(value = "/signup", method = RequestMethod.POST) + @PostMapping("/signup") protected String doPost(HttpServletRequest request, HttpServletResponse response) { com.juick.User visitor = UserUtils.getCurrentUser(); int uid = 0; |