Skip to content
Permalink
Browse files
spring security allow posting pets
  • Loading branch information
fiammara committed Dec 29, 2019
1 parent e63b584 commit e95aa369ceb56d37f2c2530b57a46f5abf14a0b6
Showing 1 changed file with 1 addition and 1 deletion.
@@ -29,7 +29,7 @@ protected void configure(HttpSecurity http) throws Exception {
.httpBasic()
.and()
.authorizeRequests()
.antMatchers(HttpMethod.POST, "/petstore/pet").hasRole("ADMIN")
// .antMatchers(HttpMethod.POST, "/petstore/pet").hasRole("ADMIN")
.antMatchers(HttpMethod.PUT, "/petstore/pet/**").hasRole("ADMIN")
.antMatchers(HttpMethod.DELETE, "/petstore/pet/**").hasRole("ADMIN")
.and()

0 comments on commit e95aa36

Please sign in to comment.