Add missing MethodPut to location/admin.gohtml’s MethodNotAllowed

This commit is contained in:
jordi fita mas 2024-01-23 11:31:34 +01:00
parent d96f62a0a3
commit 2db322a55c
1 changed files with 1 additions and 1 deletions

View File

@ -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)