Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions src/main/java/com/example/hackathon/controller/TestController.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public Response<List<ActivityResponseDto>> getTodayMissionActivities(@AuthUser L
);
}

@Operation(summary = "유저의 활동 내역을 추가하는 API", description = "유저의 활동 내역을 추가합니다.")
@PostMapping("/user/activities")
public Response<Void> addUserActivities(
@AuthUser Long userId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.example.hackathon.global.auth.service.KakaoOAuthService;
import com.example.hackathon.global.response.Response;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
Expand All @@ -18,6 +19,10 @@ public OAuthController(KakaoOAuthService kakaoOAuthService) {
this.kakaoOAuthService = kakaoOAuthService;
}

@Operation(
summary = "카카오 로그인 콜백 API",
description = "카카오 OAuth 인증 후 리디렉션되는 콜백 엔드포인트입니다. 인가 코드를 통해 JWT 토큰을 반환합니다."
)
@GetMapping("/kakao/callback")
public Response<?> kakaoLogin(@RequestParam("code") String code) {
String jwtToken = kakaoOAuthService.loginWithKakao(code);
Expand Down