2 Commits

Author SHA1 Message Date
d2163e1601 Merge remote-tracking branch 'origin/paymentIntegration' 2025-05-31 12:12:03 +02:00
f4c8177270 change wishlist toogle 2025-05-29 23:17:54 +02:00

View File

@@ -24,10 +24,10 @@ public class WishlistController {
this.noticeService = noticeService;
}
@PostMapping("/toggle")
public ResponseEntity<RequestResponseDTO> toggleWishlist(@RequestBody WishlistDTO wishlistDTO) {
Long noticeId = wishlistDTO.getNoticeId();
Long clientId = wishlistDTO.getClientId();
@PostMapping("/toggle/{noticeId}")
public ResponseEntity<RequestResponseDTO> toggleWishlist(@PathVariable Long noticeId) {
Long clientId = 1L;
NoticeDTO noticeDTO = noticeService.getNoticeById(noticeId);
if (noticeDTO == null) {
return ResponseEntity.badRequest().body(new RequestResponseDTO("Notice not found"));