Skip to content

Commit

Permalink
use classSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
siwonpada committed Sep 12, 2024
1 parent cdee706 commit fc2b2c4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/external/external.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import { Body, Controller, Get, Post, Req, UseGuards } from '@nestjs/common';
import {
Body,
ClassSerializerInterceptor,
Controller,
Get,
Post,
Req,
UseGuards,
UseInterceptors,
} from '@nestjs/common';
import {
ApiBasicAuth,
ApiBearerAuth,
Expand All @@ -21,6 +30,7 @@ import { ExternalService } from './external.service';

@Controller('external')
@ApiTags('external')
@UseInterceptors(ClassSerializerInterceptor)
export class ExternalController {
constructor(private readonly externalService: ExternalService) {}

Expand Down

0 comments on commit fc2b2c4

Please sign in to comment.