Add missing MethodPut to location/admin.gohtml’s MethodNotAllowed
This commit is contained in:
parent
d96f62a0a3
commit
2db322a55c
|
@ -40,7 +40,7 @@ func (h *AdminHandler) Handler(user *auth.User, company *auth.Company, conn *dat
|
|||
case http.MethodPut:
|
||||
updateLocationSettings(w, r, user, company, conn)
|
||||
default:
|
||||
httplib.MethodNotAllowed(w, r, http.MethodGet)
|
||||
httplib.MethodNotAllowed(w, r, http.MethodGet, http.MethodPut)
|
||||
}
|
||||
default:
|
||||
http.NotFound(w, r)
|
||||
|
|
Loading…
Reference in New Issue