Skip to content

Commit

Permalink
update endpoint name
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed May 12, 2024
1 parent 884bb88 commit 94df201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions api/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 94df201

Please sign in to comment.