diff --git a/backEnd/center/src/connections/connections.controller.ts b/backEnd/center/src/connections/connections.controller.ts index 833f7bc..337377c 100644 --- a/backEnd/center/src/connections/connections.controller.ts +++ b/backEnd/center/src/connections/connections.controller.ts @@ -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'; @@ -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;