From 01005edc98a2b5d5897bd566eae0d394dbc1967a Mon Sep 17 00:00:00 2001 From: sungjiwoon Date: Fri, 19 Jan 2024 19:08:20 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20:=20mainClient=20=ED=95=AB=ED=94=BD?= =?UTF-8?q?=EC=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/catchroom/chat/feign/client/MainFeignClient.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/catchroom/chat/feign/client/MainFeignClient.java b/src/main/java/com/catchroom/chat/feign/client/MainFeignClient.java index 2babdec..0479feb 100644 --- a/src/main/java/com/catchroom/chat/feign/client/MainFeignClient.java +++ b/src/main/java/com/catchroom/chat/feign/client/MainFeignClient.java @@ -10,6 +10,7 @@ import org.springframework.web.bind.annotation.RequestMethod; import java.util.List; +import org.springframework.web.bind.annotation.RequestParam; /** * 채팅 서버 입장 (시큐리티 X) @@ -19,7 +20,7 @@ * */ @FeignClient( - name = "mainFeign", url = "http://localhost:8081/v1", + name = "mainFeign", url = "https://catchroom.xyz/v1", configuration = FeignConfig.class ) public interface MainFeignClient { @@ -30,4 +31,10 @@ public interface MainFeignClient { @RequestMapping(method = RequestMethod.GET, value = "/chat/room/list/chat") List getChatRoomList(@RequestHeader("Authorization") String accessToken); + @RequestMapping(method = RequestMethod.DELETE, value = "/chat/room") + String deleteChatRoom( + @RequestHeader("Authorization") String accessToken, + @RequestParam(name = "roomId") String roomId + ); + }