diff options
Diffstat (limited to 'derelict.go')
-rw-r--r-- | derelict.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/derelict.go b/derelict.go index d70598e..ef0b6c3 100644 --- a/derelict.go +++ b/derelict.go @@ -74,12 +74,7 @@ func handleBattlesPost(w http.ResponseWriter, r *http.Request) { http.Error(w, "Unexpected error 1", http.StatusInternalServerError) return } - type wreck struct { - Team int `json:"team"` - Id string `json:"id"` - Hash string `json:"hash"` - } - var wrecks []wreck + var wrecks []Wreck data, err := ioutil.ReadAll(r.Body) if err != nil { http.Error(w, "Unexpected error 2", http.StatusInternalServerError) |