From 91c7d751c0fd72263133e0074e03588758bb57ab Mon Sep 17 00:00:00 2001 From: uuuuuuuk Date: Tue, 10 Oct 2023 16:15:24 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20AuthController=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1=20=EB=B0=8F=20=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85=20?= =?UTF-8?q?api=20=EB=93=B1=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../auth/presentation/AuthController.kt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/kotlin/andreas311/miso/domain/auth/presentation/AuthController.kt diff --git a/src/main/kotlin/andreas311/miso/domain/auth/presentation/AuthController.kt b/src/main/kotlin/andreas311/miso/domain/auth/presentation/AuthController.kt new file mode 100644 index 00000000..8e29f551 --- /dev/null +++ b/src/main/kotlin/andreas311/miso/domain/auth/presentation/AuthController.kt @@ -0,0 +1,20 @@ +package andreas311.miso.domain.auth.presentation + +import andreas311.miso.domain.auth.presentation.data.request.SignUpRequest +import andreas311.miso.domain.auth.service.SignUpService +import andreas311.miso.global.annotation.RequestController +import org.springframework.http.HttpStatus +import org.springframework.http.ResponseEntity +import org.springframework.web.bind.annotation.PostMapping +import org.springframework.web.bind.annotation.RequestBody + +@RequestController("/auth") +class AuthController( + private val signUpService: SignUpService +) { + + @PostMapping + fun signUp(@RequestBody signUpRequest: SignUpRequest): ResponseEntity = + signUpService.execute(signUpRequest) + .let { ResponseEntity.status(HttpStatus.CREATED).build() } +} \ No newline at end of file