Skip to content

Commit

Permalink
Merge pull request #27 from gsainfoteam/siwonpada/issue22
Browse files Browse the repository at this point in the history
[BUG] favicon.ico가 없어서 생기는 문제
  • Loading branch information
siwonpada authored Sep 26, 2024
2 parents 482a470 + 133c8df commit 07bf469
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/app.controller.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Controller, Get } from '@nestjs/common';
import { Controller, Get, HttpCode } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import {
ApiInternalServerErrorResponse,
ApiNoContentResponse,
ApiOkResponse,
ApiOperation,
} from '@nestjs/swagger';
Expand All @@ -27,4 +28,14 @@ export class AppController {
publishedAt: this.publishedAt,
};
}

@ApiOperation({
summary: 'Disable favicon',
description: '파비콘 요청을 무시합니다.',
})
@ApiNoContentResponse()
@ApiInternalServerErrorResponse()
@Get('favicon.ico')
@HttpCode(204)
async favicon() {}
}

0 comments on commit 07bf469

Please sign in to comment.