diff options
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 e746b67d..0ba68182 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 425a9d10..d7dbe0ef 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 a8ffd6d1..7a5cebda 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); |