diff --git a/back/src/user/presentation/http/controller/ProfileController.ts b/back/src/user/presentation/http/controller/ProfileController.ts index f78eb7e4..1d75fa91 100644 --- a/back/src/user/presentation/http/controller/ProfileController.ts +++ b/back/src/user/presentation/http/controller/ProfileController.ts @@ -51,6 +51,18 @@ export class ProfileController { return this.getResponseByLogin('email@email.com') } + @Get('/user/profile/currency') + @ApiOperation({ title: 'Show user currency' }) + @ApiOkResponse({ + description: 'Fetching user currency success', + type: ProfileResponse, + }) + public async getUserCurrency( + @CurrentUser() user: TokenPayload, + ): Promise { + return this.getResponseByLogin(user.login) + } + @PostNoCreate('/set-currency/:currency') @ApiOperation({ title: 'Set default currency' }) @ApiOkResponse({