1
0

Okay, it conflicts with :id wildcard. Let's then do cleaning on every post deletion/creation/editing.

This commit is contained in:
Alexander Andreev 2023-05-22 23:13:25 +04:00
parent f04dbb48a3
commit 2ef1b98fdb
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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)