Skip to content

Commit

Permalink
kakao signIn API를 Controller에 등록한다
Browse files Browse the repository at this point in the history
  • Loading branch information
anjeongkyun committed Oct 2, 2023
1 parent c85562b commit 7870aff
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions api/src/main/kotlin/org/tagwonder/controllers/MemberController.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package org.tagwonder.controllers

import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RestController
import org.tagwonder.oAuth.kakao.SignInKakaoOauth
import org.tagwonder.usecases.commands.SignInOAuthCommandExecutor

@RestController
class MemberController(
private val signInOAuthCommandExecutor: SignInOAuthCommandExecutor
) {

@PostMapping("/sign-in/kakao")
fun signInKakao(
@RequestBody command: SignInKakaoOauth
): ResponseEntity<*> {
return ResponseEntity.ok(signInOAuthCommandExecutor.execute(command))
}
}

0 comments on commit 7870aff

Please sign in to comment.