From fab6d71f13eb4623e3cb5ca11c1bd2012e1810bc Mon Sep 17 00:00:00 2001 From: banseok1216 Date: Tue, 3 Jun 2025 11:49:05 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fixed:=20api=20=EB=AA=85=EC=84=B8=EC=84=9C?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/org/chewing/v1/controller/ai/AiController.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/main/kotlin/org/chewing/v1/controller/ai/AiController.kt b/api/src/main/kotlin/org/chewing/v1/controller/ai/AiController.kt index aeb96ec05..75cefd932 100644 --- a/api/src/main/kotlin/org/chewing/v1/controller/ai/AiController.kt +++ b/api/src/main/kotlin/org/chewing/v1/controller/ai/AiController.kt @@ -12,13 +12,15 @@ import org.chewing.v1.util.security.CurrentUser import org.springframework.stereotype.Controller import org.springframework.web.bind.annotation.PostMapping import org.springframework.web.bind.annotation.RequestBody +import org.springframework.web.bind.annotation.RequestMapping @Controller +@RequestMapping("/api/ai") class AiController( private val aiFacade: AiFacade, private val aiChatRoomService: AiChatRoomService, ) { - @PostMapping("/ai/chat/room") + @PostMapping("/chat/room") fun createAiChatRoom( @CurrentUser userId: UserId, ): SuccessResponseEntity { @@ -26,7 +28,7 @@ class AiController( return ResponseHelper.success(chatRoomId) } - @PostMapping("/ai/chat/room/prompt") + @PostMapping("/chat/room/prompt") fun promptAiChatRoom( @CurrentUser userId: UserId, @RequestBody request: ChatRequest.Common, From a4af61874611eb4a4f571f018b78c14e474029b1 Mon Sep 17 00:00:00 2001 From: banseok1216 Date: Tue, 3 Jun 2025 11:51:55 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fixed:=20api=20=EA=B2=BD=EB=A1=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/kotlin/org/chewing/v1/controller/ai/AiController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/kotlin/org/chewing/v1/controller/ai/AiController.kt b/api/src/main/kotlin/org/chewing/v1/controller/ai/AiController.kt index dfcf18696..c39b49372 100644 --- a/api/src/main/kotlin/org/chewing/v1/controller/ai/AiController.kt +++ b/api/src/main/kotlin/org/chewing/v1/controller/ai/AiController.kt @@ -38,7 +38,7 @@ class AiController( return ResponseHelper.success(AiChatMessageResponse.of(prompt)) } - @PostMapping("/ai/chat/clone") + @PostMapping("/chat/clone") fun cloneDirectChatRoom( @CurrentUser userId: UserId, @RequestBody request: ClonePromptRequest,