Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
회원가입 http status 201로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p committed Jan 31, 2024
1 parent b29f6c8 commit 0b75ac3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,6 +30,7 @@ public Mono<TokenResponse> login(@RequestBody LoginRequest request) {
}

@PostMapping("/signup")
@ResponseStatus(HttpStatus.CREATED)
public Mono<Void> signup(@RequestBody SignupRequest request) {
return signupService.execute(request);
}
Expand Down

0 comments on commit 0b75ac3

Please sign in to comment.