Skip to content

Commit

Permalink
✨ feat: 테스터 로그인 엔드포인트 swagger 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
xjfcnfw3 committed Nov 25, 2024
1 parent b71839a commit 22d60c6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion packages/backend/src/auth/tester/testerAuth.controller.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Controller, Get, Req, Res, UseGuards } from '@nestjs/common';
import { ApiOkResponse, ApiOperation, ApiTags } from '@nestjs/swagger';
import {
ApiOkResponse,
ApiOperation,
ApiQuery,
ApiTags,
} from '@nestjs/swagger';
import { Request, Response } from 'express';
import { TestAuthGuard } from '@/auth/tester/guard/tester.guard';

Expand All @@ -12,6 +17,16 @@ export class TesterAuthController {
summary: '테스터 로그인 api',
description: '테스터로 로그인합니다.',
})
@ApiQuery({
name: 'username',
required: true,
description: '테스터 아이디(값만 넣으면 됨)',
})
@ApiQuery({
name: 'password',
required: true,
description: '테스터 비밀번호(값만 넣으면 됨)',
})
@Get('/login')
@UseGuards(TestAuthGuard)
async handleLogin(@Res() response: Response) {
Expand Down

0 comments on commit 22d60c6

Please sign in to comment.