Use PATCH

This commit is contained in:
Daniel Ponte 2024-12-29 18:33:22 -05:00
parent a680354b83
commit 3b914ba19e

View file

@ -36,7 +36,7 @@ func (ia *incidentsAPI) Subrouter() http.Handler {
r.Post(`/`, ia.listIncidents)
r.Post(`/{id:[a-f0-9-]+}/calls`, ia.postCalls)
r.Put(`/{id:[a-f0-9-]+}`, ia.updateIncident)
r.Patch(`/{id:[a-f0-9-]+}`, ia.updateIncident)
r.Delete(`/{id:[a-f0-9-]+}`, ia.deleteIncident)