bson, json 소문자로 변경
This commit is contained in:
@ -465,6 +465,11 @@ func (caller apiCaller) maintenanceAPI(w http.ResponseWriter, r *http.Request) e
|
||||
}
|
||||
} else if r.Method == "POST" {
|
||||
servicename := queryvals.Get("name")
|
||||
if valid, _ := caller.isValidUser(servicename, "service"); !valid {
|
||||
logger.Println("maintenanceAPI failed. not vaild user :", r.Method, caller.userinfo)
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
return nil
|
||||
}
|
||||
|
||||
var divs map[string]*Division
|
||||
dec := json.NewDecoder(r.Body)
|
||||
|
||||
Reference in New Issue
Block a user