forked from ebhomengo/niki
1
0
Fork 0

fix(httpserver): change PUT http method to PATCH

This commit is contained in:
Iman Mirazimi 2024-01-03 15:20:18 +03:30
parent 7de5d5fdae
commit 8841987502
2 changed files with 2 additions and 2 deletions

View File

@ -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"
}

View File

@ -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"
}