Skip to content

Commit

Permalink
fix: [BE] Http 메서드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Gseungmin committed Dec 13, 2023
1 parent 7789f2f commit 678efc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backEnd/center/src/connections/connections.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller, Post, Body } from '@nestjs/common';
import { Controller, Post, Body, Get } from '@nestjs/common';
import { JoinRoomDto } from './dto/join-room.dto';
import { EventsService } from 'src/events/events.service';
import { ResponseDto } from 'src/common/dto/common-response.dto';
Expand All @@ -11,25 +11,25 @@ export class ConnectionsController {
private readonly eventChatService: EventsChatService,
) {}

@Post('join/signalling')
@Get('join/signalling')
findSignalingServer(@Body() data: JoinRoomDto): ResponseDto {
const response: ResponseDto = this.eventService.findServer(data);
return response;
}

@Post('leave/signalling')
@Get('leave/signalling')
leaveSignaling(@Body() data: JoinRoomDto): ResponseDto {
const response: ResponseDto = this.eventService.leaveRoom(data);
return response;
}

@Post('join/chatting')
@Get('join/chatting')
findChattingServer(@Body() data: JoinRoomDto): ResponseDto {
const response: ResponseDto = this.eventChatService.findServer(data);
return response;
}

@Post('leave/chatting')
@Get('leave/chatting')
leaveChatting(@Body() data: JoinRoomDto): ResponseDto {
const response: ResponseDto = this.eventChatService.leaveRoom(data);
return response;
Expand Down

0 comments on commit 678efc9

Please sign in to comment.