Skip to content

Commit

Permalink
✨ Health Check 엔드포인트 수정 및 인증 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
RetepMil committed Oct 1, 2023
1 parent 1551a65 commit 91fc4d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RestController
@RestController
class CommonController {

@GetMapping
@GetMapping("health")
fun healthCheck(): String = "OK"

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package retepmil.personal.dailysteady.common.security.config

import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.http.HttpMethod
import org.springframework.security.config.Customizer
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
Expand Down Expand Up @@ -38,7 +37,7 @@ class SecurityConfig(
.authorizeHttpRequests { request ->
request
.requestMatchers(CorsUtils::isPreFlightRequest).permitAll()
.requestMatchers("/signin", "/signup").permitAll()
.requestMatchers("/signin", "/signup", "/health").permitAll()
.requestMatchers("/member").hasRole("MEMBER")
// .requestMatchers("/admin/**").hasRole("ADMIN")
.anyRequest().authenticated()
Expand Down

0 comments on commit 91fc4d9

Please sign in to comment.