Skip to content

Commit

Permalink
Merge pull request #148 from Team-Port/(#139)refactor/subscribeToFollow
Browse files Browse the repository at this point in the history
(#139)refactor/subscribe to follow
  • Loading branch information
wndjs803 authored Nov 21, 2023
2 parents 7e0b994 + dcf1b73 commit 3813965
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@RestController
@RequiredArgsConstructor
@Tag(name = "Follow", description = "Follow API Document")
@RequestMapping("/api/v1/Follows")
@RequestMapping("/api/v1/follows")
public class FollowController {

private final FollowService followService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public class Follow {

@Id
@Column(name = "subscribe_id")
@Column(name = "follow_id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public void addCorsMappings(CorsRegistry registry) {
HttpMethod.GET.name(),
HttpMethod.POST.name(),
HttpMethod.PUT.name(),
HttpMethod.DELETE.name())
HttpMethod.DELETE.name(),
HttpMethod.PATCH.name())
.allowedHeaders("Content-Type", "Authorization");
}
}

0 comments on commit 3813965

Please sign in to comment.