File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/main/java/net/javadiscord/javabot/api/routes Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public MetricsController(final JDA jda) {
4646 * @param guildId The guilds' id.
4747 * @return The {@link ResponseEntity}.
4848 */
49- @ GetMapping ("{guild_id}/metrics" )
49+ @ GetMapping ("guilds/ {guild_id}/metrics" )
5050 public ResponseEntity <MetricsData > getMetrics (@ PathVariable ("guild_id" ) long guildId ) {
5151 Guild guild = jda .getGuildById (guildId );
5252 if (guild == null ) {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public QOTWLeaderboardController(final JDA jda) {
4848 * @param amount The amount of users to return. Defaults to 3.
4949 * @return The {@link ResponseEntity}.
5050 */
51- @ GetMapping ("{guild_id}/qotw/leaderboard" )
51+ @ GetMapping ("guilds/ {guild_id}/qotw/leaderboard" )
5252 public ResponseEntity <List <QOTWMemberData >> getQOTWLeaderboard (
5353 @ PathVariable ("guild_id" ) long guildId ,
5454 @ RequestParam (value = "amount" , defaultValue = "3" ) int amount
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public UserProfileController(final JDA jda) {
6161 * @param userId The users' id.
6262 * @return The {@link ResponseEntity} containing the {@link UserProfileData}.
6363 */
64- @ GetMapping ("{guild_id}/{user_id}" )
64+ @ GetMapping ("guilds/ {guild_id}/users /{user_id}" )
6565 public ResponseEntity <UserProfileData > getUserProfile (
6666 @ PathVariable ("guild_id" ) long guildId ,
6767 @ PathVariable ("user_id" ) long userId
You can’t perform that action at this time.
0 commit comments