Skip to content

Commit

Permalink
METRON-1390: Swagger UI for "Web Security Config" Controller needs re…
Browse files Browse the repository at this point in the history
…quest method (MohanDV via mmiklavc) closes apache#889
  • Loading branch information
MohanDV authored and iraghumitra committed Feb 17, 2018
1 parent 97096a7 commit d158281
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -33,6 +33,7 @@
import org.springframework.security.web.csrf.CookieCsrfTokenRepository;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.sql.DataSource;
import java.util.Arrays;
Expand All @@ -47,7 +48,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
private Environment environment;

@RequestMapping({"/login", "/logout", "/sensors", "/sensors*/**"})
@RequestMapping(value = {"/login", "/logout", "/sensors", "/sensors*/**"}, method = RequestMethod.GET)
public String handleNGRequests() {
return "forward:/index.html";
}
Expand Down

0 comments on commit d158281

Please sign in to comment.