Skip to content

Commit

Permalink
#36 add all controller api path
Browse files Browse the repository at this point in the history
  • Loading branch information
jojaeng2 committed Dec 31, 2023
1 parent 4fc48a8 commit c77bd71
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
Expand Down

0 comments on commit c77bd71

Please sign in to comment.