-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c85562b
commit 7870aff
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
api/src/main/kotlin/org/tagwonder/controllers/MemberController.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
} | ||
} |