aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-03-10 20:28:32 +0300
committerGravatar Vitaly Takmazov2017-03-10 20:28:32 +0300
commitd05897b15a84b3ac51fe8f123baeef948a371e24 (patch)
tree0944f6fc2fa162bf82b1ff933abc2f117682db48 /juick-api/src/main/java
parentc189636002c3245633730969ac00206e19a8105e (diff)
juick-www: using @RequestParam to match juick-api
Diffstat (limited to 'juick-api/src/main/java')
-rw-r--r--juick-api/src/main/java/com/juick/api/controllers/Messages.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-api/src/main/java/com/juick/api/controllers/Messages.java b/juick-api/src/main/java/com/juick/api/controllers/Messages.java
index 5863ec5f..8c3acc88 100644
--- a/juick-api/src/main/java/com/juick/api/controllers/Messages.java
+++ b/juick-api/src/main/java/com/juick/api/controllers/Messages.java
@@ -68,8 +68,8 @@ public class Messages {
@RequestMapping("/messages")
public ResponseEntity<List<com.juick.Message>> getMessages(
@RequestParam(required = false) String uname,
- @RequestParam(defaultValue = "0") int before_mid,
- @RequestParam(required = false, defaultValue = "0") int daysback,
+ @RequestParam(defaultValue = "0") Integer before_mid,
+ @RequestParam(required = false, defaultValue = "0") Integer daysback,
@RequestParam(required = false) String withrecommended,
@RequestParam(required = false) String popular,
@RequestParam(required = false) String media,