diff options
author | Vitaly Takmazov | 2018-09-07 13:18:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-09-07 11:36:32 +0000 |
commit | f5b5b9edea2ce4ba7c01075f38592bebbfc8db3f (patch) | |
tree | 423c76c07999757f99231c5b1214291510e13116 /juick-server/src/main/java/com/juick/server/api | |
parent | 2ac7d0da0b044c0a14cc73adbd82ecc4014246c4 (diff) |
fix remaining errors, now live
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api')
3 files changed, 4 insertions, 4 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/webhooks/MessengerWebhook.java b/juick-server/src/main/java/com/juick/server/api/webhooks/MessengerWebhook.java index e746b67d4..0ba681820 100644 --- a/juick-server/src/main/java/com/juick/server/api/webhooks/MessengerWebhook.java +++ b/juick-server/src/main/java/com/juick/server/api/webhooks/MessengerWebhook.java @@ -44,7 +44,7 @@ public class MessengerWebhook { @Inject private MessengerManager messengerManager; - @RequestMapping(value = "/fbwbhk", method = RequestMethod.GET) + @RequestMapping(value = "/api/fbwbhk", method = RequestMethod.GET) public ResponseEntity<Integer> verifyHook(@RequestParam(name = "hub.mode") String hubMode, @RequestParam(name = "hub.challenge") Integer hubChallenge, @RequestParam(name = "hub.verify_token") String verifyToken) { @@ -53,7 +53,7 @@ public class MessengerWebhook { } throw new HttpForbiddenException(); } - @RequestMapping(value = "/fbwbhk", method = RequestMethod.POST) + @RequestMapping(value = "/api/fbwbhk", method = RequestMethod.POST) @ResponseStatus(value = HttpStatus.OK) public void processUpdate(@RequestHeader(name = "X-Hub-Signature", required = false) String signature, InputStream body) throws IOException, MessengerVerificationException { String data = IOUtils.toString(body, StandardCharsets.UTF_8); diff --git a/juick-server/src/main/java/com/juick/server/api/webhooks/SkypeWebhook.java b/juick-server/src/main/java/com/juick/server/api/webhooks/SkypeWebhook.java index 425a9d10b..d7dbe0ef0 100644 --- a/juick-server/src/main/java/com/juick/server/api/webhooks/SkypeWebhook.java +++ b/juick-server/src/main/java/com/juick/server/api/webhooks/SkypeWebhook.java @@ -38,7 +38,7 @@ import java.nio.charset.StandardCharsets; @RestController public class SkypeWebhook { private static final Logger logger = LoggerFactory.getLogger(SkypeWebhook.class); - @RequestMapping(value = "/skypebotendpoint", method = RequestMethod.POST) + @RequestMapping(value = "/api/skypebotendpoint", method = RequestMethod.POST) @ResponseStatus(value = HttpStatus.OK) public void doPost(InputStream body) throws IOException { String data = IOUtils.toString(body, StandardCharsets.UTF_8); diff --git a/juick-server/src/main/java/com/juick/server/api/webhooks/TelegramWebhook.java b/juick-server/src/main/java/com/juick/server/api/webhooks/TelegramWebhook.java index a8ffd6d11..7a5cebda2 100644 --- a/juick-server/src/main/java/com/juick/server/api/webhooks/TelegramWebhook.java +++ b/juick-server/src/main/java/com/juick/server/api/webhooks/TelegramWebhook.java @@ -46,7 +46,7 @@ public class TelegramWebhook { @Inject private TelegramBotManager telegramBotManager; - @RequestMapping(value = "/tlgmbtwbhk", method = RequestMethod.POST) + @RequestMapping(value = "/api/tlgmbtwbhk", method = RequestMethod.POST) @ResponseStatus(value = HttpStatus.OK) public void processUpdate(InputStream body) throws Exception { String data = IOUtils.toString(body, StandardCharsets.UTF_8); |