Skip to content

Commit

Permalink
Merge pull request #39 from 28th-meetup/fix/authApi
Browse files Browse the repository at this point in the history
chore: signup, signin 주소 변경
  • Loading branch information
summit45 committed Nov 16, 2023
2 parents f079bd8 + a951854 commit 79f6206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/kusitms/jipbap/auth/AuthController.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ public class AuthController {
private final AuthService authService;

@Operation(summary = "일반 회원 가입")
@PostMapping("/signUp")
@PostMapping("/signup")
@ResponseStatus(HttpStatus.OK)
public CommonResponse<String> signUp(@Valid @RequestBody SignUpRequestDto dto) {
authService.signUp(dto);
return new CommonResponse<>("회원가입 성공");
}

@Operation(summary = "로그인")
@PostMapping("/signIn")
@PostMapping("/signin")
@ResponseStatus(HttpStatus.OK)
public CommonResponse<SignInResponseDto> signIn(@Valid @RequestBody SignInRequestDto dto) {
return new CommonResponse<>(authService.signIn(dto.getEmail(), dto.getPassword()));
Expand Down

0 comments on commit 79f6206

Please sign in to comment.