aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/controllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-12 10:36:36 +0300
committerGravatar Vitaly Takmazov2018-01-12 10:37:11 +0300
commit59d08c3fe59077238e7f7774be359a7966ed522c (patch)
tree8267b366c8b36f557c1d4172df85d9094cf18d3d /juick-api/src/main/java/com/juick/api/controllers
parent4b9186442839ab591ba04b6e2474edbcc3a2f6f8 (diff)
api: merge top component
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/controllers')
-rw-r--r--juick-api/src/main/java/com/juick/api/controllers/Messages.java21
1 files changed, 0 insertions, 21 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 5f00ee68..e16e46d5 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
@@ -178,25 +178,4 @@ public class Messages {
}
throw new HttpForbiddenException();
}
- @ApiIgnore
- @RequestMapping("/messages/top_candidates")
- public List<Integer> topCandidates() {
- User visitor = UserUtils.getCurrentUser();
- if ((visitor.getUid() == 0) || !(visitor.getName().equals("juick"))) {
- throw new HttpForbiddenException();
- }
- return messagesService.getPopularCandidates();
- }
-
- @ApiIgnore
- @RequestMapping("/messages/set_popular")
- public Status doSetPopular(
- @RequestParam(defaultValue = "0") int mid,
- @RequestParam(defaultValue = "0") int popular) {
- if (mid > 0) {
- messagesService.setMessagePopular(mid, popular);
- return Status.OK;
- }
- throw new HttpBadRequestException();
- }
}