stats stats stats stats

This commit is contained in:
Fraser Graham
2014-01-16 00:13:02 -08:00
parent 3fa53daadb
commit 72d5a1a64c
4 changed files with 29 additions and 7 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ func gameStats(w http.ResponseWriter, req *http.Request) {
}
g.stats.RLock()
defer g.stats.RUnlock()
if err := json.NewEncoder(w).Encode(g.stats); err != nil {
if err := json.NewEncoder(w).Encode(g.stats.PlayerStats); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
}