Skip to content

Commit b03783c

Browse files
Renamed routes for better organization
1 parent 3a48912 commit b03783c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/net/javadiscord/javabot/api/routes/metrics/MetricsController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

src/main/java/net/javadiscord/javabot/api/routes/qotw_leaderboard/QOTWLeaderboardController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/main/java/net/javadiscord/javabot/api/routes/user_profile/UserProfileController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)