Skip to content

Commit

Permalink
modify :: controller
Browse files Browse the repository at this point in the history
  • Loading branch information
meltapplee committed Sep 3, 2024
1 parent 3239e26 commit fe2b5b7
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit fe2b5b7

Please sign in to comment.