diff --git a/pkg/server/server_full.go b/pkg/server/server_full.go index d6785e3..a99d1b3 100644 --- a/pkg/server/server_full.go +++ b/pkg/server/server_full.go @@ -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))