From 73f4650abab2d6a9e2f1800f2573e6b2704faffb Mon Sep 17 00:00:00 2001 From: Mnigos Date: Sat, 9 Dec 2023 00:57:20 +0100 Subject: [PATCH] refactor(modules/statistics.controller): rename endpoints fe. `/top-tracks` -> `/top/tracks` --- src/modules/statistics/statistics.controller.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/statistics/statistics.controller.ts b/src/modules/statistics/statistics.controller.ts index 7a57d03a..fa60597a 100644 --- a/src/modules/statistics/statistics.controller.ts +++ b/src/modules/statistics/statistics.controller.ts @@ -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.", }) @@ -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.", }) @@ -49,7 +49,7 @@ export class StatisticsController { ) } - @Get('/top-genres') + @Get('top/genres') @ApiOperation({ summary: "Getting current user's top genres.", }) @@ -69,7 +69,7 @@ export class StatisticsController { ) } - @Get('/top-artists') + @Get('top/artists') @ApiOperation({ summary: "Getting current user's top artists.", }) @@ -89,7 +89,7 @@ export class StatisticsController { ) } - @Get('/artist') + @Get('artist') @ApiOperation({ summary: "Getting current user's artist.", }) @@ -101,7 +101,7 @@ export class StatisticsController { return this.statisticsService.artist(accessToken, id) } - @Get('/analysis') + @Get('analysis') @ApiOperation({ summary: "Getting current user's analysis.", })