Skip to content

Commit 3ba0497

Browse files
committed
feat: MyBarController에 칵테일 킵(Keep) 해제 API 추가
1 parent 57a6710 commit 3ba0497

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/com/back/domain/mybar/controller/MyBarController.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,14 @@ public RsData<Void> keep(
3737
myBarService.keep(userId, cocktailId);
3838
return RsData.of(201, "kept"); // Aspect가 HTTP 201로 설정
3939
}
40+
41+
/** 킵 해제(소프트 삭제) — 멱등 */
42+
@DeleteMapping("/{cocktailId}/keep")
43+
public RsData<Void> unkeep(
44+
@AuthenticationPrincipal(expression = "id") Long userId,
45+
@PathVariable Long cocktailId
46+
) {
47+
myBarService.unkeep(userId, cocktailId);
48+
return RsData.of(200, "deleted");
49+
}
4050
}

0 commit comments

Comments
 (0)