initial plumb of scoreboard

This commit is contained in:
Jason White
2017-05-02 16:10:55 -04:00
parent 615ca5afe3
commit b0f66f16fb
10 changed files with 131 additions and 42 deletions

View File

@ -71,6 +71,7 @@ public class MvcConfiguration extends WebMvcConfigurerAdapter {
registry.addViewController("/login").setViewName("login");
registry.addViewController("/lesson_content").setViewName("lesson_content");
registry.addViewController("/start.mvc").setViewName("main_new");
registry.addViewController("/scoreboard").setViewName("scoreboard");
}

View File

@ -33,7 +33,7 @@ public class Scoreboard {
private List<String> flagsCaptured;
}
@GetMapping("/scoreboard")
@GetMapping("/scoreboard-data")
public List<Ranking> getRankings() {
List<WebGoatUser> allUsers = userRepository.findAll();
List<Ranking> rankings = Lists.newArrayList();