Skip to content

Commit

Permalink
Merge pull request #14 from GreenGen72/feature/rotas-categoria
Browse files Browse the repository at this point in the history
Feature/rotas categoria
  • Loading branch information
RaviBrito authored May 22, 2024
2 parents 927f39a + d9c8554 commit b6d81d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ SecurityFilterChain filterChain(HttpSecurity http) throws Exception {

http.authorizeHttpRequests(
(auth) -> auth.requestMatchers("/usuarios/logar").permitAll().requestMatchers("/usuarios/cadastrar")
.permitAll().requestMatchers(HttpMethod.GET,"/produto").permitAll().requestMatchers("/error/**").permitAll()
.permitAll().requestMatchers(HttpMethod.GET,"/produto").permitAll().requestMatchers("/error/**")
.permitAll().requestMatchers(HttpMethod.GET,"/categoria").permitAll().requestMatchers("/error/**").permitAll()
.requestMatchers(HttpMethod.OPTIONS).permitAll().anyRequest().authenticated())
.authenticationProvider(authenticationProvider())
.addFilterBefore(authFilter, UsernamePasswordAuthenticationFilter.class).httpBasic(withDefaults());
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
spring.profiles.active=prod
spring.profiles.active=PROD

springdoc.api-docs.path=/v3/api-docs
springdoc.swagger-ui.path=/swagger-ui.html
Expand Down

0 comments on commit b6d81d4

Please sign in to comment.