Skip to content

Commit

Permalink
javalin 4 route placeholder hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 authored Nov 10, 2021
1 parent 614f607 commit 580139e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/de/kittybot/kittybot/modules/WebModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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));
});
Expand Down

0 comments on commit 580139e

Please sign in to comment.