Skip to content

Commit

Permalink
#6 - Feat: Add review delete controller
Browse files Browse the repository at this point in the history
  • Loading branch information
eun61n00 committed Aug 21, 2023
1 parent 2cc27b8 commit 0631f86
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,12 @@ public ResponseEntity<Mono<AttractionReview>> saveAttractionReview(@RequestBody
return new ResponseEntity<>(service.update(request), HttpStatus.OK);
}
}

@DeleteMapping("/delete/{attractionContentId}")
public ResponseEntity<Mono<Void>> deleteAttractionReview(
@RequestParam(name = "attractionContentId") String attractionContentId,
@RequestParam(name = "userId") String userId
) {
return new ResponseEntity<>(service.delete(attractionContentId, userId), HttpStatus.OK);
}
}

0 comments on commit 0631f86

Please sign in to comment.