Skip to content

Commit

Permalink
refactor(modules/statistics.controller): rename endpoints fe. `/top-t…
Browse files Browse the repository at this point in the history
…racks` -> `/top/tracks`
  • Loading branch information
Mnigos committed Dec 9, 2023
1 parent 33587ed commit 73f4650
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/modules/statistics/statistics.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { AuthenticationType } from '@modules/auth/enums'
export class StatisticsController {
constructor(private readonly statisticsService: StatisticsService) {}

@Get('/last-tracks')
@Get('last-tracks')
@ApiOperation({
summary: "Getting current user's last tracks.",
})
Expand All @@ -29,7 +29,7 @@ export class StatisticsController {
return this.statisticsService.lastTracks(accessToken, limit, before, after)
}

@Get('/top-tracks')
@Get('top/tracks')
@ApiOperation({
summary: "Getting current user's top tracks.",
})
Expand All @@ -49,7 +49,7 @@ export class StatisticsController {
)
}

@Get('/top-genres')
@Get('top/genres')
@ApiOperation({
summary: "Getting current user's top genres.",
})
Expand All @@ -69,7 +69,7 @@ export class StatisticsController {
)
}

@Get('/top-artists')
@Get('top/artists')
@ApiOperation({
summary: "Getting current user's top artists.",
})
Expand All @@ -89,7 +89,7 @@ export class StatisticsController {
)
}

@Get('/artist')
@Get('artist')
@ApiOperation({
summary: "Getting current user's artist.",
})
Expand All @@ -101,7 +101,7 @@ export class StatisticsController {
return this.statisticsService.artist(accessToken, id)
}

@Get('/analysis')
@Get('analysis')
@ApiOperation({
summary: "Getting current user's analysis.",
})
Expand Down

0 comments on commit 73f4650

Please sign in to comment.