From 4c59f33c704aace70ce196f3775444ba3c3635d3 Mon Sep 17 00:00:00 2001 From: mountain Date: Mon, 5 Jun 2023 17:22:48 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EB=A6=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/api.go | 2 +- core/service.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }