1
0

Had to do this dirty move, since httprouter complains about paths intersection.

Added /api/mindflow-category endpoints.
This commit is contained in:
Alexander Andreev 2023-05-23 00:21:42 +04:00
parent 714d4fdb73
commit aeb481b2ba
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -108,7 +108,9 @@ func main() {
srv.PATCH("/api/mindflow/:id", mindflowApi.Edit) srv.PATCH("/api/mindflow/:id", mindflowApi.Edit)
srv.DELETE("/api/mindflow/:id", mindflowApi.Delete) 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 { if err := srv.Start(network, *listenAddress); err != nil {
log.Fatalln(err) log.Fatalln(err)