We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57a6710 commit 3ba0497Copy full SHA for 3ba0497
src/main/java/com/back/domain/mybar/controller/MyBarController.java
@@ -37,4 +37,14 @@ public RsData<Void> keep(
37
myBarService.keep(userId, cocktailId);
38
return RsData.of(201, "kept"); // Aspect가 HTTP 201로 설정
39
}
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
+ }
50
0 commit comments