Skip to content

Commit 5224861

Browse files
committed
feat(security): permite acesso público ao Swagger UI e documentação da API
1 parent c80a2d5 commit 5224861

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

linktreeclone-backend/src/main/java/br/com/linktreeclone/config/SecurityConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
3838
"/auth/login",
3939
"/status"
4040
).permitAll()
41+
.requestMatchers("/swagger-ui.html").permitAll()
42+
.requestMatchers("/swagger-ui/**").permitAll()
43+
.requestMatchers("/v3/api-docs/**").permitAll()
4144
.requestMatchers(HttpMethod.GET, "/{username}").permitAll()
4245
.anyRequest().authenticated()
4346
)

0 commit comments

Comments
 (0)