Skip to content

Commit

Permalink
chore: swagger 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoya324 committed Dec 5, 2024
1 parent 2d36aa2 commit d8b509a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,13 @@ public SecurityFilterChain filterChain(HttpSecurity http, HandlerMappingIntrospe
.permitAll()
.requestMatchers(new MvcRequestMatcher(introspector, ADMIN_API_PREFIX + "/**"))
.hasRole("ADMIN")
.requestMatchers(new MvcRequestMatcher(introspector, "/maru-egg/api-docs/**"))
.permitAll()
.requestMatchers(new MvcRequestMatcher(introspector, "/actuator/**"))
.permitAll()
.requestMatchers(new MvcRequestMatcher(introspector, "/grafana/**"))
.permitAll()
.requestMatchers(
new MvcRequestMatcher(introspector, String.format("/%s/swagger-ui**", swaggerKey)))
.permitAll()
.requestMatchers(new MvcRequestMatcher(introspector, "/api-docs/**"))
.requestMatchers(new MvcRequestMatcher(introspector, String.format("/%s/api-docs/**", swaggerKey)))
.permitAll()
.requestMatchers(new MvcRequestMatcher(introspector, "/v3/api-docs/**"))
.permitAll().
requestMatchers(
.requestMatchers(
new MvcRequestMatcher(introspector, String.format("/%s/swagger-ui/**", swaggerKey)))
.permitAll()
.anyRequest()
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jwt:

springdoc:
api-docs:
path: /api-docs
path: /local/api-docs
groups:
enabled: true
swagger-ui:
Expand Down

0 comments on commit d8b509a

Please sign in to comment.