@@ -99,7 +99,7 @@ public void configure(WebSecurity web) throws Exception {
99
99
.antMatchers (HttpMethod .OPTIONS , "/**" )
100
100
.antMatchers ("/app/**/*.{js,html}" )
101
101
.antMatchers ("/content/**" )
102
- .antMatchers ("/swagger-ui.. html" )
102
+ .antMatchers ("/swagger-ui.html" )
103
103
.antMatchers ("/h2-console/**" );
104
104
}
105
105
@@ -136,8 +136,9 @@ protected void configure(HttpSecurity http) throws Exception {
136
136
.permitAll ()
137
137
.antMatchers (HttpMethod .GET , "/api/posts/**" ).permitAll ()
138
138
.antMatchers (HttpMethod .GET , "/api/comments/**" ).permitAll ()
139
- .antMatchers ("/" , "/error" , "/api/authenticate/**" , "/api/register" , "/auth/authenticate"
140
- , "/auth/signup" , "/oauth2/**" , "/h2-console/**" , "/swagger-ui.html" )
139
+ .antMatchers ("/" , "/error" , "/api/authenticate/**" , "/api/register" ,
140
+ "/auth/authenticate" , "/auth/signup" , "/oauth2/**" , "/h2-console/**" ,
141
+ "/v2/**" , "/swagger-ui.html" , "/swagger-resources/**" )
141
142
.permitAll ()
142
143
.anyRequest ()
143
144
.authenticated ()
0 commit comments