Skip to content

Commit

Permalink
fix: (#66) 어노테이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaiaiai1 committed Jul 18, 2023
1 parent 6bce9d2 commit c28b224
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
Expand All @@ -34,7 +35,7 @@ public ResponseEntity<List<CategoryResponse>> getAllCategories() {
@Operation(summary = "선호 카테고리 추가하기", description = "선호하는 카테고리를 선호 카테고리 목록에 추가한다.")
@ApiResponse(responseCode = "201", description = "추가 성공")
@PostMapping("/{categoryId}/like")
public ResponseEntity<Void> addFavoriteCategory(final Member member, final Long categoryId) {
public ResponseEntity<Void> addFavoriteCategory(final Member member, @PathVariable final Long categoryId) {
categoryService.addFavoriteCategory(member, categoryId);
return ResponseEntity.status(HttpStatus.CREATED).build();
}
Expand Down

0 comments on commit c28b224

Please sign in to comment.