From d05897b15a84b3ac51fe8f123baeef948a371e24 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 10 Mar 2017 20:28:32 +0300 Subject: juick-www: using @RequestParam to match juick-api --- juick-api/src/main/java/com/juick/api/controllers/Messages.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-api/src/main/java/com/juick/api') 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> 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, -- cgit v1.2.3