diff options
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/Messages.java | 6 |
1 files changed, 3 insertions, 3 deletions
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<List<com.juick.Message>> NOT_FOUND = ResponseEntity @@ -69,7 +69,7 @@ public class Messages { // TODO: serialize image urls - @RequestMapping("/home") + @GetMapping("/home") public ResponseEntity<List<com.juick.Message>> 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<List<com.juick.Message>> getThread( @RequestParam(defaultValue = "0") int mid) { User visitor = UserUtils.getCurrentUser(); |