diff --git a/src/main/java/de/tinf22b6/dhbwhub/controller/PostController.java b/src/main/java/de/tinf22b6/dhbwhub/controller/PostController.java index 8a3902c8..f759f01e 100644 --- a/src/main/java/de/tinf22b6/dhbwhub/controller/PostController.java +++ b/src/main/java/de/tinf22b6/dhbwhub/controller/PostController.java @@ -69,7 +69,7 @@ public List getPostsByTagKeyword(@PathVariable Stri return service.getPostTagsByKeyword(keyword); } - @GetMapping("/friend-posts-by-tag") + @PostMapping("/friend-posts-by-tag") public List getFriendPostsByTag(@RequestBody FriendPostsByTagProposal friendPostsByTagProposal) { return service.getPostsFromFriendsByTag(friendPostsByTagProposal.getUserId(), friendPostsByTagProposal.getTag()); }