diff --git a/backend/src/main/java/wooteco/prolog/roadmap/ui/RecommendedController.java b/backend/src/main/java/wooteco/prolog/roadmap/ui/RecommendedController.java index b781fd1a2..aa83c816d 100644 --- a/backend/src/main/java/wooteco/prolog/roadmap/ui/RecommendedController.java +++ b/backend/src/main/java/wooteco/prolog/roadmap/ui/RecommendedController.java @@ -24,23 +24,23 @@ public RecommendedController(final RecommendedPostService recommendedPostService } @PostMapping - public ResponseEntity createRecommendedPost(@PathVariable("keywordId") Long keywordId, - @RequestBody RecommendedRequest request) { - final Long id = recommendedPostService.create(keywordId, request); + public ResponseEntity createRecommendedPost(@PathVariable("keywordId") final Long keywordId, + @RequestBody final RecommendedRequest request) { + recommendedPostService.create(keywordId, request); return ResponseEntity.status(HttpStatus.CREATED).build(); } @PutMapping("/{recommendedId}") - public ResponseEntity updateRecommendedPost(@PathVariable("keywordId") Long keywordId, - @PathVariable("recommendedId") Long recommendedId, - @RequestBody RecommendedUpdateRequest request) { + public ResponseEntity updateRecommendedPost(@PathVariable("keywordId") final Long keywordId, + @PathVariable("recommendedId") final Long recommendedId, + @RequestBody final RecommendedUpdateRequest request) { recommendedPostService.update(recommendedId, request); return ResponseEntity.noContent().build(); } @DeleteMapping("/{recommendedId}") - public ResponseEntity deleteRecommendedPost(@PathVariable("keywordId") Long keywordId, - @PathVariable("recommendedId") Long recommendedId) { + public ResponseEntity deleteRecommendedPost(@PathVariable("keywordId") final Long keywordId, + @PathVariable("recommendedId") final Long recommendedId) { recommendedPostService.delete(recommendedId); return ResponseEntity.noContent().build(); }