Okay, it conflicts with :id wildcard. Let's then do cleaning on every post deletion/creation/editing.
This commit is contained in:
parent
f04dbb48a3
commit
2ef1b98fdb
@ -105,7 +105,6 @@ func main() {
|
||||
mindflowApi := http.NewMindflowApiHandlers(mindflowDB)
|
||||
|
||||
srv.POST("/api/mindflow", mindflowApi.New)
|
||||
srv.DELETE("/api/mindflow/category", mindflowApi.DeleteUnusedCategories)
|
||||
srv.PATCH("/api/mindflow/:id", mindflowApi.Edit)
|
||||
srv.DELETE("/api/mindflow/:id", mindflowApi.Delete)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user