From 711b5d583bf52cdb88a20ddf31feac87b26c55c4 Mon Sep 17 00:00:00 2001 From: GitBluub Date: Wed, 20 Sep 2023 03:40:40 +0200 Subject: [PATCH] doc: users controller --- back/src/users/users.controller.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/back/src/users/users.controller.ts b/back/src/users/users.controller.ts index 84bb003..f9b29f5 100644 --- a/back/src/users/users.controller.ts +++ b/back/src/users/users.controller.ts @@ -1,6 +1,6 @@ import { Controller, Get, Param, NotFoundException, Response } from '@nestjs/common'; import { UsersService } from './users.service'; -import { ApiNotFoundResponse, ApiTags } from '@nestjs/swagger'; +import { ApiNotFoundResponse, ApiOkResponse, ApiTags } from '@nestjs/swagger'; import { User } from 'src/models/user'; @ApiTags('users') @@ -22,6 +22,7 @@ export class UsersController { } @Get(':id/picture') + @ApiOkResponse({description: 'Return the profile picture of the requested user'}) async getPicture(@Response() res: any, @Param('id') id: number) { return await this.usersService.getProfilePicture(+id, res); }