Serve monthly statistics by default

This commit is contained in:
Trevor Slocum 2024-08-07 14:32:29 -07:00
parent e13bee99a1
commit b910dc750e

View file

@ -60,8 +60,8 @@ func (s *server) listenWebSocket(address string) {
m.HandleFunc("/leaderboard-rated-acey-multi.json", s.handleLeaderboardFunc(matchTypeRated, bgammon.VariantAceyDeucey, true))
m.HandleFunc("/leaderboard-rated-tabula-single.json", s.handleLeaderboardFunc(matchTypeRated, bgammon.VariantTabula, false))
m.HandleFunc("/leaderboard-rated-tabula-multi.json", s.handleLeaderboardFunc(matchTypeRated, bgammon.VariantTabula, true))
m.HandleFunc("/stats.json", s.handleStatsFunc(0))
m.HandleFunc("/stats-month.json", s.handleStatsFunc(1))
m.HandleFunc("/stats.json", s.handleStatsFunc(1))
m.HandleFunc("/stats-day.json", s.handleStatsFunc(0))
m.HandleFunc("/stats-total.json", s.handleStatsFunc(2))
m.HandleFunc("/stats-tabula.json", s.handleStatsFunc(3))
m.HandleFunc("/stats-wildbg.json", s.handleStatsFunc(4))