aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-28 16:15:56 +0300
committerGravatar Vitaly Takmazov2018-06-28 16:15:56 +0300
commitdd5cc385090a295260ecde438f405a876f829033 (patch)
tree0b3599caebaae8088ffac819bb2ebbc8908d4421 /juick-server/src/main/java/com/juick/server
parent30ef0800930e668035eb34013714c08d707f86a0 (diff)
fix ambigous api mappings
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/Messages.java6
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();