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 310599aa..c39b4937 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 @@ -14,12 +14,14 @@ 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, ) { - @PostMapping("/ai/chat/room") + @PostMapping("/chat/room") fun createAiChatRoom( @CurrentUser userId: UserId, ): SuccessResponseEntity { @@ -27,7 +29,7 @@ class AiController( return ResponseHelper.successCreate(ChatRoomIdResponse.of(chatRoomId)) } - @PostMapping("/ai/chat/room/prompt") + @PostMapping("/chat/room/prompt") fun promptAiChatRoom( @CurrentUser userId: UserId, @RequestBody request: ChatRequest.Common, @@ -36,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,