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 + ); + }