diff --git a/api/common.go b/api/common.go index 4fdb0d7..f3c3fa9 100644 --- a/api/common.go +++ b/api/common.go @@ -55,7 +55,7 @@ func Init(mux *http.ServeMux) error { mux.HandleFunc("GET /savedata/newclear", handleNewClear) // new session - mux.HandleFunc("POST /savedata/update2", handleSaveData2) + mux.HandleFunc("POST /savedata/updateall", handleSaveData2) // daily mux.HandleFunc("GET /daily/seed", handleDailySeed) diff --git a/api/endpoints.go b/api/endpoints.go index 1a4c327..7347dd6 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -334,6 +334,7 @@ type CombinedSaveData struct { SessionSlotId int `json:"sessionSlotId"` } +// TODO wrap this in a transaction func handleSaveData2(w http.ResponseWriter, r *http.Request) { var token []byte token, err := tokenFromRequest(r)