Skip to content

Commit

Permalink
feat: JWT Test API 추가 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeong-hyeok committed Aug 3, 2023
1 parent 3289921 commit 184521c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.project.mapdagu.domain.member.dto.response.SignUpResponseDto;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
Expand All @@ -16,9 +17,14 @@ public class AuthController {

private final AuthService authService;

@PostMapping("/api/sign-up")
@PostMapping("/sign-up")
public ResponseEntity<SignUpResponseDto> signUp(@RequestBody SignUpRequestDto signUpRequestDto) {
SignUpResponseDto signUpResponseDto = authService.signUp(signUpRequestDto);
return ResponseDto.created(signUpResponseDto);
}

@GetMapping("/jwt-test")
public String jwtTest() {
return "jwtTest 요청 성공";
}
}
3 changes: 3 additions & 0 deletions src/main/resources/static/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<a href="/oauth2/authorization/kakao">Kakao Login</a><br>
<a href="/oauth2/authorization/google">Google Login</a><br>
<a href="/oauth2/authorization/naver">Naver Login</a><br>

0 comments on commit 184521c

Please sign in to comment.