From fe2b5b705a557d2e693b430dc1938173d4632e31 Mon Sep 17 00:00:00 2001 From: soohyeon Date: Tue, 3 Sep 2024 16:43:06 +0900 Subject: [PATCH] modify :: controller --- .../domain/review/presentation/ReviewController.kt | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main/kotlin/org/meogo/domain/review/presentation/ReviewController.kt b/src/main/kotlin/org/meogo/domain/review/presentation/ReviewController.kt index 0b53db2..3266b95 100644 --- a/src/main/kotlin/org/meogo/domain/review/presentation/ReviewController.kt +++ b/src/main/kotlin/org/meogo/domain/review/presentation/ReviewController.kt @@ -1,21 +1,10 @@ package org.meogo.domain.review.presentation import lombok.RequiredArgsConstructor -import org.meogo.domain.review.presentation.dto.ReviewRequest -import org.meogo.domain.review.service.CreateReviewService -import org.springframework.web.bind.annotation.PostMapping -import org.springframework.web.bind.annotation.RequestBody import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RestController @RestController @RequiredArgsConstructor @RequestMapping("/review") -class ReviewController( - private val createReviewService: CreateReviewService -) { - - @PostMapping() - fun create(@RequestBody request: ReviewRequest) = - createReviewService.execute(request) -} +class ReviewController()