Skip to content

Commit 580139e

Browse files
authored
javalin 4 route placeholder hotfix
1 parent 614f607 commit 580139e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/de/kittybot/kittybot/modules/WebModule.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ public void onEnable(){
9595
before("/*", this::checkDiscordLogin);
9696
get(new GetUserInfoRoute(this.modules));
9797
});
98-
path("/webhooks/votes/:botlist", () ->
98+
path("/webhooks/votes/{botlist}", () ->
9999
post(new PostVotesRoute(this.modules))
100100
);
101101
path("/guilds", () -> {
102102
before("/*", this::checkDiscordLogin);
103103
get(new GetAllGuildsRoute(this.modules));
104-
path("/:guildId", () -> {
104+
path("/{guildId}", () -> {
105105
before("/*", this::checkGuildPerms);
106106
path("/roles", () ->
107107
get(new GetRolesRoute(this.modules))
@@ -120,7 +120,7 @@ public void onEnable(){
120120
);
121121
path("/tags", () -> {
122122
get(new GetTagsRoute(this.modules));
123-
path("/:tagId", () -> {
123+
path("/{tagId}", () -> {
124124
post(new PostTagRoute(this.modules));
125125
delete(new DeleteTagRoute(this.modules));
126126
});

0 commit comments

Comments
 (0)