|
|
@ -202,7 +202,7 @@ func handleSession(w http.ResponseWriter, r *http.Request) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
w.WriteHeader(http.StatusOK)
|
|
|
|
w.WriteHeader(http.StatusNoContent)
|
|
|
|
case "DELETE":
|
|
|
|
case "DELETE":
|
|
|
|
err := savedata.DeleteSession(uuid, slot)
|
|
|
|
err := savedata.DeleteSession(uuid, slot)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
@ -210,7 +210,7 @@ func handleSession(w http.ResponseWriter, r *http.Request) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
w.WriteHeader(http.StatusOK)
|
|
|
|
w.WriteHeader(http.StatusNoContent)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -628,7 +628,7 @@ func handleSystem(w http.ResponseWriter, r *http.Request) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
w.WriteHeader(http.StatusOK)
|
|
|
|
w.WriteHeader(http.StatusNoContent)
|
|
|
|
case "DELETE":
|
|
|
|
case "DELETE":
|
|
|
|
err := savedata.DeleteSystem(uuid)
|
|
|
|
err := savedata.DeleteSystem(uuid)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
@ -636,7 +636,7 @@ func handleSystem(w http.ResponseWriter, r *http.Request) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
w.WriteHeader(http.StatusOK)
|
|
|
|
w.WriteHeader(http.StatusNoContent)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|