aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-01 15:58:08 +0300
committerGravatar Vitaly Takmazov2016-12-01 15:58:08 +0300
commit111570e3056a1c0e24116b72a1e719028d3e5cdf (patch)
tree74593f7f9d4b5c0619d3a17771b2bf3edec6b578
parent6136a9c2d0f4b82a5fe5569bcdf416c40616c5aa (diff)
juick-api: post controller should consume POST method
-rw-r--r--juick-api/src/main/java/com/juick/api/controllers/Post.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-api/src/main/java/com/juick/api/controllers/Post.java b/juick-api/src/main/java/com/juick/api/controllers/Post.java
index 0fbf87e8..b8fb1259 100644
--- a/juick-api/src/main/java/com/juick/api/controllers/Post.java
+++ b/juick-api/src/main/java/com/juick/api/controllers/Post.java
@@ -62,7 +62,7 @@ public class Post {
@Inject
Environment env;
- @RequestMapping(value = "/post", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
+ @RequestMapping(value = "/post", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public com.juick.Message doPostMessage(
Principal principal,
@RequestParam String body,
@@ -174,7 +174,7 @@ public class Post {
return jmsg;
}
- @RequestMapping(value = "/comment", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
+ @RequestMapping(value = "/comment", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public com.juick.Message doPostComment(
Principal principal,
@RequestParam(defaultValue = "0") int mid,