Skip to content

Commit

Permalink
Merge pull request #56 from CSID-DGU/back-feat-4
Browse files Browse the repository at this point in the history
[FIX] 로그인 POST로 변경
  • Loading branch information
price126 authored Oct 29, 2024
2 parents 6311adc + 889057a commit ed479cf
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
import com.thered.stocksignal.service.user.UserAccountService;
import io.swagger.v3.oas.annotations.Parameter;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import io.swagger.v3.oas.annotations.Operation;
import java.util.Optional;

Expand All @@ -27,7 +24,7 @@ public class KakaoLoginController {

@Operation(summary = "프론트로부터 카카오 인가코드 전달받기")
@Parameter(name = "code", description = "카카오에서 받은 인카코드, RequestParam")
@GetMapping("/login")
@PostMapping("/login")
public ApiResponse<?> kakaoLoginCode(@RequestParam("code") String code){

String token = kakaoLoginService.getKakaoToken(code);
Expand Down

0 comments on commit ed479cf

Please sign in to comment.