Edit a post is actually should be of method PATCH.
This commit is contained in:
parent
91a76fb9d7
commit
fc4512a625
@ -103,7 +103,7 @@ func main() {
|
||||
mindflowApi := http.NewMindflowApiHandlers(mindflowDB)
|
||||
|
||||
srv.POST("/api/mindflow", mindflowApi.New)
|
||||
srv.POST("/api/mindflow/:id", mindflowApi.Edit)
|
||||
srv.PATCH("/api/mindflow/:id", mindflowApi.Edit)
|
||||
srv.DELETE("/api/mindflow/:id", mindflowApi.Delete)
|
||||
|
||||
if err := srv.Start(network, *listenAddress); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user