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:
|
case http.MethodPut:
|
||||||
updateLocationSettings(w, r, user, company, conn)
|
updateLocationSettings(w, r, user, company, conn)
|
||||||
default:
|
default:
|
||||||
httplib.MethodNotAllowed(w, r, http.MethodGet)
|
httplib.MethodNotAllowed(w, r, http.MethodGet, http.MethodPut)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
http.NotFound(w, r)
|
http.NotFound(w, r)
|
||||||
|
|
Loading…
Reference in New Issue