Skip to content

Commit

Permalink
fix: 인증 및 인가 관리 dev check 진행하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
DongGeon0908 committed Sep 3, 2024
1 parent 1a4e255 commit 16ade79
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.hero.alignlab.common.extension.wrapCreated
import com.hero.alignlab.common.extension.wrapOk
import com.hero.alignlab.domain.auth.application.AuthFacade
import com.hero.alignlab.domain.auth.model.AuthUser
import com.hero.alignlab.domain.auth.model.DevAuthUser
import com.hero.alignlab.domain.auth.model.request.SignInRequest
import com.hero.alignlab.domain.auth.model.request.SignUpRequest
import io.swagger.v3.oas.annotations.Operation
Expand All @@ -21,13 +22,15 @@ class AuthResource(
@Operation(summary = "회원가입")
@PostMapping("/api/v1/auth/sign-up")
suspend fun signUp(
dev: DevAuthUser,
@RequestBody request: SignUpRequest,
) = authFacade.signUp(request).wrapCreated()

/** 일반 로그인 */
@Operation(summary = "로그인")
@PostMapping("/api/v1/auth/sign-in")
suspend fun signUp(
dev: DevAuthUser,
@RequestBody request: SignInRequest,
) = authFacade.signIn(request).wrapOk()

Expand Down

0 comments on commit 16ade79

Please sign in to comment.