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); }