Had to do this dirty move, since httprouter complains about paths intersection.
Added /api/mindflow-category endpoints.
This commit is contained in:
parent
714d4fdb73
commit
aeb481b2ba
@ -108,7 +108,9 @@ func main() {
|
||||
srv.PATCH("/api/mindflow/:id", mindflowApi.Edit)
|
||||
srv.DELETE("/api/mindflow/:id", mindflowApi.Delete)
|
||||
|
||||
srv.DELETE("/api/mindflow/category/:id", mindflowApi.DeleteCategory)
|
||||
srv.POST("/api/mindflow-category", mindflowApi.NewCategory)
|
||||
srv.PATCH("/api/mindflow-category/:id", mindflowApi.EditCategory)
|
||||
srv.DELETE("/api/mindflow-category/:id", mindflowApi.DeleteCategory)
|
||||
|
||||
if err := srv.Start(network, *listenAddress); err != nil {
|
||||
log.Fatalln(err)
|
||||
|
Loading…
Reference in New Issue
Block a user