diff --git a/core/api.go b/core/api.go index cc37c0b..ec1e5f4 100644 --- a/core/api.go +++ b/core/api.go @@ -464,7 +464,7 @@ func (caller apiCaller) maintenanceAPI(w http.ResponseWriter, r *http.Request) e caller.writeAccessableServices(w) } } else if r.Method == "POST" { - servicename := r.FormValue("name") + servicename := queryvals.Get("name") var divs map[string]*division dec := json.NewDecoder(r.Body) diff --git a/core/service.go b/core/service.go index 1046d65..4a93d6f 100644 --- a/core/service.go +++ b/core/service.go @@ -160,7 +160,7 @@ const ( ) type maintenance struct { - Notice string `bson:"notice"` + Notice string `bson:"notice" json:"notice"` StartTimeUTC int64 `bson:"start_unixtime_utc" json:"start_unixtime_utc"` link string }