From 580139e8817a41b88820dacd843ef49075418f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?To=CF=80Senpai?= <15636011+TopiSenpai@users.noreply.github.com> Date: Wed, 10 Nov 2021 10:12:07 +0100 Subject: [PATCH] javalin 4 route placeholder hotfix --- src/main/java/de/kittybot/kittybot/modules/WebModule.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/kittybot/kittybot/modules/WebModule.java b/src/main/java/de/kittybot/kittybot/modules/WebModule.java index 29ea46ded..f36ded909 100644 --- a/src/main/java/de/kittybot/kittybot/modules/WebModule.java +++ b/src/main/java/de/kittybot/kittybot/modules/WebModule.java @@ -95,13 +95,13 @@ public void onEnable(){ before("/*", this::checkDiscordLogin); get(new GetUserInfoRoute(this.modules)); }); - path("/webhooks/votes/:botlist", () -> + path("/webhooks/votes/{botlist}", () -> post(new PostVotesRoute(this.modules)) ); path("/guilds", () -> { before("/*", this::checkDiscordLogin); get(new GetAllGuildsRoute(this.modules)); - path("/:guildId", () -> { + path("/{guildId}", () -> { before("/*", this::checkGuildPerms); path("/roles", () -> get(new GetRolesRoute(this.modules)) @@ -120,7 +120,7 @@ public void onEnable(){ ); path("/tags", () -> { get(new GetTagsRoute(this.modules)); - path("/:tagId", () -> { + path("/{tagId}", () -> { post(new PostTagRoute(this.modules)); delete(new DeleteTagRoute(this.modules)); });