diff --git a/DuDoong-Api/src/main/java/band/gosrock/api/config/security/SecurityConfig.java b/DuDoong-Api/src/main/java/band/gosrock/api/config/security/SecurityConfig.java index 90a8c59c..4706004c 100644 --- a/DuDoong-Api/src/main/java/band/gosrock/api/config/security/SecurityConfig.java +++ b/DuDoong-Api/src/main/java/band/gosrock/api/config/security/SecurityConfig.java @@ -80,6 +80,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { .permitAll() .mvcMatchers(HttpMethod.GET, "/v1/events/search") .permitAll() + .mvcMatchers(HttpMethod.GET, "/v1/examples/health") + .permitAll() .mvcMatchers(HttpMethod.POST, "/v1/coupons/campaigns") .hasRole("SUPER_ADMIN") // 인증 이필요한 모든 요청은 USER 권한을 최소한 가지고있어야한다. diff --git a/DuDoong-Api/src/main/java/band/gosrock/api/example/controller/ExampleController.java b/DuDoong-Api/src/main/java/band/gosrock/api/example/controller/ExampleController.java index 5015b1ac..f0a71bb2 100644 --- a/DuDoong-Api/src/main/java/band/gosrock/api/example/controller/ExampleController.java +++ b/DuDoong-Api/src/main/java/band/gosrock/api/example/controller/ExampleController.java @@ -8,6 +8,7 @@ import band.gosrock.common.annotation.ApiErrorCodeExample; import band.gosrock.common.annotation.ApiErrorExceptionsExample; import band.gosrock.common.annotation.DevelopOnlyApi; +import band.gosrock.common.annotation.DisableSwaggerSecurity; import band.gosrock.common.exception.GlobalErrorCode; import band.gosrock.domain.domains.cart.exception.CartErrorCode; import band.gosrock.domain.domains.coupon.exception.CouponErrorCode; @@ -47,6 +48,10 @@ public ExampleResponse get() { return exampleApiService.getExample(); } + @GetMapping("/health") + @DisableSwaggerSecurity + public void health() {} + @PostMapping @ApiErrorExceptionsExample(ExampleException2Docs.class) public ExampleResponse create() { diff --git a/README.md b/README.md index 489ccc46..a28c2899 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ ![Frame 4](https://user-images.githubusercontent.com/55226431/221772740-e9946fda-a24c-4b90-8871-4d1d8a340725.png) - -

+[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Gosrock_DuDoong-Backend&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Gosrock_DuDoong-Backend) +[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=Gosrock_DuDoong-Backend&metric=coverage)](https://sonarcloud.io/summary/new_code?id=Gosrock_DuDoong-Backend) +[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=Gosrock_DuDoong-Backend&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=Gosrock_DuDoong-Backend) +
# 두둥