Skip to content
Permalink
Browse files
Merge pull request #8 from fiammara/master
spring security allow posting pets
  • Loading branch information
jamesbognar committed Dec 29, 2019
2 parents e63b584 + e95aa36 commit 8059508c81884a9b3b76353cf51cea0ecf8f4153
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 8059508

Please sign in to comment.