From dd5cc385090a295260ecde438f405a876f829033 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 28 Jun 2018 16:15:56 +0300 Subject: fix ambigous api mappings --- juick-server/src/main/java/com/juick/server/api/Messages.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-server/src') diff --git a/juick-server/src/main/java/com/juick/server/api/Messages.java b/juick-server/src/main/java/com/juick/server/api/Messages.java index 1c3062af..b433bea5 100644 --- a/juick-server/src/main/java/com/juick/server/api/Messages.java +++ b/juick-server/src/main/java/com/juick/server/api/Messages.java @@ -47,7 +47,7 @@ import java.util.Objects; * @author ugnich */ @RestController -@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) +@RequestMapping(produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public class Messages { private static final ResponseEntity> NOT_FOUND = ResponseEntity @@ -69,7 +69,7 @@ public class Messages { // TODO: serialize image urls - @RequestMapping("/home") + @GetMapping("/home") public ResponseEntity> getHome( @RequestParam(defaultValue = "0") int before_mid) { User visitor = UserUtils.getCurrentUser(); @@ -157,7 +157,7 @@ public class Messages { @RequestParam(required = false, defaultValue = "0") Long to) { return messagesService.getMessages(messagesService.getDiscussions(UserUtils.getCurrentUser().getUid(), to)); } - @RequestMapping("/thread") + @GetMapping("/thread") public ResponseEntity> getThread( @RequestParam(defaultValue = "0") int mid) { User visitor = UserUtils.getCurrentUser(); -- cgit v1.2.3