Skip to content

Commit

Permalink
revert: (#78) Get Method 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
khcho0125 committed Sep 30, 2022
1 parent ab2c3de commit 244f028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class SecurityConfig(
.antMatchers(HttpMethod.PUT, "/commons/token/reissue").permitAll()

// emails
.antMatchers(HttpMethod.HEAD, "/emails").permitAll()
.antMatchers(HttpMethod.GET, "/emails").permitAll()
.antMatchers(HttpMethod.POST, "/emails/code").permitAll()

// menu
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package team.comit.simtong.email

import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RestController
import team.comit.simtong.domain.auth.usecase.CheckAuthCodeUseCase
import team.comit.simtong.domain.auth.usecase.SendAuthCodeUseCase
Expand Down Expand Up @@ -31,7 +31,7 @@ class WebEmailAdapter(
sendAuthCodeUseCase.execute(request.email)
}

@RequestMapping(method = [RequestMethod.HEAD])
@GetMapping
fun checkAuthCode(@Valid request: WebCheckAuthCodeRequest) {
checkAuthCodeUseCase.execute(request.email, request.code)
}
Expand Down

0 comments on commit 244f028

Please sign in to comment.