Skip to content

Commit

Permalink
fix: delete 메서드 Path 명시
Browse files Browse the repository at this point in the history
  • Loading branch information
lsc713 committed Jun 17, 2024
1 parent 5616934 commit dca97e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ public CommonResponse<PostInfo> updatePost(@PathVariable("postToken") String pos

@DeleteMapping("/{postToken}")
public CommonResponse<HttpStatus> deletePost(
@PathVariable String postToken,
@PathVariable("postToken") String postToken,
@AuthenticationPrincipal UserDetailsImpl userDetails
) {
postservice.deletePost(postToken, userDetails.getUsername());
return CommonResponse.success(HttpStatus.NO_CONTENT);
return CommonResponse.success(HttpStatus.OK);

}

Expand Down

0 comments on commit dca97e3

Please sign in to comment.