@Post('delete')
@HttpCode(HttpStatus.OK)
@ApiResponse({
status: 200,
type: testData
})
async delete(@Body() data: IdDto) {
try {
return testData;
} catch (error) {
console.log(error);
}
}
export class IdDto {
@ApiProperty()
id: string;
}
@Delete(':userId')
remove(@Param('userId') userId: string) {
return this.userService.remove(userId);
}