mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
update endpoint name
This commit is contained in:
parent
884bb88cd3
commit
94df201bf7
@ -55,7 +55,7 @@ func Init(mux *http.ServeMux) error {
|
|||||||
mux.HandleFunc("GET /savedata/newclear", handleNewClear)
|
mux.HandleFunc("GET /savedata/newclear", handleNewClear)
|
||||||
|
|
||||||
// new session
|
// new session
|
||||||
mux.HandleFunc("POST /savedata/update2", handleSaveData2)
|
mux.HandleFunc("POST /savedata/updateall", handleSaveData2)
|
||||||
|
|
||||||
// daily
|
// daily
|
||||||
mux.HandleFunc("GET /daily/seed", handleDailySeed)
|
mux.HandleFunc("GET /daily/seed", handleDailySeed)
|
||||||
|
@ -334,6 +334,7 @@ type CombinedSaveData struct {
|
|||||||
SessionSlotId int `json:"sessionSlotId"`
|
SessionSlotId int `json:"sessionSlotId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO wrap this in a transaction
|
||||||
func handleSaveData2(w http.ResponseWriter, r *http.Request) {
|
func handleSaveData2(w http.ResponseWriter, r *http.Request) {
|
||||||
var token []byte
|
var token []byte
|
||||||
token, err := tokenFromRequest(r)
|
token, err := tokenFromRequest(r)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user