Skip to content

Commit 46b7f3b

Browse files
committed
24.11.02
1 parent e097c69 commit 46b7f3b

11 files changed

+11
-15
lines changed

src/chat-room/chat-room.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ChatRoomService } from './chat-room.service';
33
import { GetChatRoomsSwagger, LeaveChatRoomSwagger } from './chat-room.swagger';
44
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
55

6-
@ApiBearerAuth()
6+
@ApiBearerAuth('Authorization')
77
@Controller('chat-room')
88
@ApiTags('[서비스] 채팅방')
99
export class ChatRoomController {

src/main.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ async function bootstrap() {
99
app.useGlobalFilters(new ServiceExceptionToHttpExceptionFilter());
1010
app.useGlobalPipes(new ValidationPipe());
1111
app.enableCors({
12-
origin: [
13-
'http://localhost:3000',
14-
'https://oodd.today',
15-
'https://dev.oodd.today',
16-
], // 프론트엔드에서 접근 가능한 도메인
12+
origin: '*', // 프론트엔드에서 접근 가능한 도메인
1713
credentials: true,
1814
allowedHeaders: '*', // 모든 헤더 허용
1915
});

src/matching/matching.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { BaseResponse } from 'src/common/response/dto';
2727
import { PostMatchingResponse } from './dto/matching.response';
2828
import { AuthGuard } from 'src/auth/guards/jwt.auth.guard';
2929

30-
@ApiBearerAuth()
30+
@ApiBearerAuth('Authorization')
3131
@Controller('matching')
3232
@ApiTags('[서비스] 매칭')
3333
export class MatchingController {

src/post-comment/post-comment.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { PostComment } from 'src/common/entities/post-comment.entity';
2525
import { GetCommentsDto } from './dtos/get-comment.dto';
2626
import dayjs from 'dayjs';
2727

28-
@ApiBearerAuth()
28+
@ApiBearerAuth('Authorization')
2929
@Controller('post-comment')
3030
@UseGuards(AuthGuard)
3131
@ApiTags('[서비스] 게시글 댓글')

src/post-like/post-like.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from './post-like.swagger';
77
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
88

9-
@ApiBearerAuth()
9+
@ApiBearerAuth('Authorization')
1010
@Controller('post-like')
1111
@ApiTags('[서비스] 게시글 좋아요')
1212
export class PostLikeController {

src/post-report/post-report.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { PostReportService } from './post-report.service';
33
import { CreatePostReportSwagger } from './post-report.swagger';
44
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
55

6-
@ApiBearerAuth()
6+
@ApiBearerAuth('Authorization')
77
@Controller('post-report')
88
@ApiTags('[서비스] 게시글 신고')
99
export class PostReportController {

src/post/post.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { PageOptionsDto } from './dtos/page-options.dto';
3434
import { PageDto } from './dtos/page.dto';
3535

3636
@Controller('post')
37-
@ApiBearerAuth()
37+
@ApiBearerAuth('Authorization')
3838
@UseGuards(AuthGuard)
3939
@ApiTags('[서비스] 게시글')
4040
export class PostController {

src/user-block/user-block.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { UserBlockService } from './user-block.service';
33
import { CreateBlockUserSwagger } from './user-block.swagget';
44
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
55

6-
@ApiBearerAuth()
6+
@ApiBearerAuth('Authorization')
77
@Controller('user-block')
88
@ApiTags('[서비스] 유저 차단')
99
export class UserBlockController {

src/user-report/user-report.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { UserReportService } from './user-report.service';
33
import { PostUserReportSwagger } from './user-report.swagger';
44
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
55

6-
@ApiBearerAuth()
6+
@ApiBearerAuth('Authorization')
77
@Controller('user-report')
88
@ApiTags('[서비스] 유저 신고')
99
export class UserReportController {

src/user/user.controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
SignOutSwagger,
99
} from './user.swagger';
1010

11-
@ApiBearerAuth()
11+
@ApiBearerAuth('Authorization')
1212
@Controller('user')
1313
@ApiTags('[서비스] 유저')
1414
export class UserController {

src/utils/swagger.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function setupSwagger(app: INestApplication): void {
1818
name: 'JWT',
1919
in: 'header',
2020
},
21-
'access-token',
21+
'Authorization',
2222
)
2323
.build();
2424

0 commit comments

Comments
 (0)