From c77bd71c762b10406465955024e4cf90f17dc658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=A0=95=ED=98=84=5B=EC=BB=A4=EB=A8=B8=EC=8A=A4I?= =?UTF-8?q?D=EA=B0=9C=EB=B0=9C=5D?= Date: Sun, 31 Dec 2023 19:20:45 +0900 Subject: [PATCH] #36 add all controller api path --- .../joryu/sns_service/comment/controller/CommentController.kt | 2 +- .../joryu/sns_service/follow/controller/FollowController.kt | 2 +- .../kotlin/joryu/sns_service/post/controller/PostController.kt | 2 +- .../joryu/sns_service/post/controller/PostLikeController.kt | 2 +- .../kotlin/joryu/sns_service/post/controller/ShareController.kt | 2 +- .../sns_service/profile/controller/ProfileApiController.kt | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sns_service/src/main/kotlin/joryu/sns_service/comment/controller/CommentController.kt b/sns_service/src/main/kotlin/joryu/sns_service/comment/controller/CommentController.kt index f37a23d..1f318f0 100644 --- a/sns_service/src/main/kotlin/joryu/sns_service/comment/controller/CommentController.kt +++ b/sns_service/src/main/kotlin/joryu/sns_service/comment/controller/CommentController.kt @@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController import java.net.URI @RestController -@RequestMapping("/comments") +@RequestMapping("/api/comments") class CommentController( private val commentService: CommentService ) { diff --git a/sns_service/src/main/kotlin/joryu/sns_service/follow/controller/FollowController.kt b/sns_service/src/main/kotlin/joryu/sns_service/follow/controller/FollowController.kt index bae7c11..18b259e 100644 --- a/sns_service/src/main/kotlin/joryu/sns_service/follow/controller/FollowController.kt +++ b/sns_service/src/main/kotlin/joryu/sns_service/follow/controller/FollowController.kt @@ -8,7 +8,7 @@ import org.springframework.http.ResponseEntity import org.springframework.web.bind.annotation.* @RestController -@RequestMapping("/follow") +@RequestMapping("/api/follow") class FollowController( private val followService: FollowService ) { diff --git a/sns_service/src/main/kotlin/joryu/sns_service/post/controller/PostController.kt b/sns_service/src/main/kotlin/joryu/sns_service/post/controller/PostController.kt index 79920d7..37c1e04 100644 --- a/sns_service/src/main/kotlin/joryu/sns_service/post/controller/PostController.kt +++ b/sns_service/src/main/kotlin/joryu/sns_service/post/controller/PostController.kt @@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.RestController import java.net.URI @RestController -@RequestMapping("/posts") +@RequestMapping("/api/posts") class PostController( private val postService: PostService ) { diff --git a/sns_service/src/main/kotlin/joryu/sns_service/post/controller/PostLikeController.kt b/sns_service/src/main/kotlin/joryu/sns_service/post/controller/PostLikeController.kt index d534227..279dc39 100644 --- a/sns_service/src/main/kotlin/joryu/sns_service/post/controller/PostLikeController.kt +++ b/sns_service/src/main/kotlin/joryu/sns_service/post/controller/PostLikeController.kt @@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RestController @RestController -@RequestMapping("/like") +@RequestMapping("/api/like") class PostLikeController( private val postLikeService: PostLikeService ) { diff --git a/sns_service/src/main/kotlin/joryu/sns_service/post/controller/ShareController.kt b/sns_service/src/main/kotlin/joryu/sns_service/post/controller/ShareController.kt index e84115a..c6f5021 100644 --- a/sns_service/src/main/kotlin/joryu/sns_service/post/controller/ShareController.kt +++ b/sns_service/src/main/kotlin/joryu/sns_service/post/controller/ShareController.kt @@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RestController @RestController -@RequestMapping("/share") +@RequestMapping("/api/share") class ShareController( private val shareService: ShareService ) { diff --git a/sns_service/src/main/kotlin/joryu/sns_service/profile/controller/ProfileApiController.kt b/sns_service/src/main/kotlin/joryu/sns_service/profile/controller/ProfileApiController.kt index d663cf4..d0c2754 100644 --- a/sns_service/src/main/kotlin/joryu/sns_service/profile/controller/ProfileApiController.kt +++ b/sns_service/src/main/kotlin/joryu/sns_service/profile/controller/ProfileApiController.kt @@ -12,7 +12,7 @@ import org.springframework.http.ResponseEntity import org.springframework.web.bind.annotation.* @RestController -@RequestMapping("/profile") +@RequestMapping("/api/profile") class ProfileApiController( private val profileService: ProfileService, ) {