forked from ebhomengo/niki
fix(httpserver): change PUT http method to PATCH
This commit is contained in:
parent
7de5d5fdae
commit
8841987502
|
@ -10,5 +10,5 @@ func (h Handler) SetRoutes(e *echo.Echo) {
|
|||
r.POST("/", h.Add).Name = "admin-addkindboxreq"
|
||||
r.GET("/:id", h.Get).Name = "admin-getkindboxreqbyid"
|
||||
r.GET("/", h.GetAll).Name = "admin-getallkindboxreq"
|
||||
r.PUT("/:id", h.Update).Name = "admin-updatekindboxreq"
|
||||
r.PATCH("/:id", h.Update).Name = "admin-updatekindboxreq"
|
||||
}
|
||||
|
|
|
@ -10,5 +10,5 @@ func (h Handler) SetRoutes(e *echo.Echo) {
|
|||
r.POST("/", h.Add).Name = "benefactor-addkindboxreq"
|
||||
r.GET("/:id", h.Get).Name = "benefactor-get-kindboxreqbyid"
|
||||
r.GET("/", h.GetAll).Name = "benefactor-getallkindboxreq"
|
||||
r.PUT("/:id", h.Update).Name = "benefactor-updatekindboxreq"
|
||||
r.PATCH("/:id", h.Update).Name = "benefactor-updatekindboxreq"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue