From 0b75ac3e776b479bc39d46cdcb0694a2804a7716 Mon Sep 17 00:00:00 2001 From: 101 Date: Wed, 31 Jan 2024 14:47:10 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85=20http=20s?= =?UTF-8?q?tatus=20201=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/daemawiki/domain/auth/api/AuthController.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/example/daemawiki/domain/auth/api/AuthController.java b/src/main/java/com/example/daemawiki/domain/auth/api/AuthController.java index 6fa367e8..013a33d6 100644 --- a/src/main/java/com/example/daemawiki/domain/auth/api/AuthController.java +++ b/src/main/java/com/example/daemawiki/domain/auth/api/AuthController.java @@ -7,10 +7,8 @@ import com.example.daemawiki.domain.auth.service.Login; import com.example.daemawiki.domain.auth.service.Signup; import com.example.daemawiki.global.security.Tokenizer; -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; +import org.springframework.http.HttpStatus; +import org.springframework.web.bind.annotation.*; import reactor.core.publisher.Mono; @RestController @@ -32,6 +30,7 @@ public Mono login(@RequestBody LoginRequest request) { } @PostMapping("/signup") + @ResponseStatus(HttpStatus.CREATED) public Mono signup(@RequestBody SignupRequest request) { return signupService.execute(request); }