From 73207344ebacfa185c0a3fd9398a5bc59ba82666 Mon Sep 17 00:00:00 2001 From: TopiSenpai Date: Wed, 16 Dec 2020 00:41:36 +0100 Subject: [PATCH] no live debugging yes yes yes yes --- src/main/java/de/kittybot/kittybot/WebService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/kittybot/kittybot/WebService.java b/src/main/java/de/kittybot/kittybot/WebService.java index 87bd2112..c96831dd 100644 --- a/src/main/java/de/kittybot/kittybot/WebService.java +++ b/src/main/java/de/kittybot/kittybot/WebService.java @@ -52,7 +52,7 @@ public class WebService{ public WebService(int port){ Javalin.create(config -> config.enableCorsForOrigin(Config.ORIGIN_URL)).routes(() -> { get("/discord_login", this::discordLogin); - get("/twitch", this::twitch); + post("/twitch", this::twitch); get("/health_check", ctx -> ctx.result("alive")); get("/commands/get", this::getCommands); post("/login", this::login);