1
0

Renamed mindflowApi methods for posts in main.

This commit is contained in:
Alexander Andreev 2023-05-23 02:41:27 +04:00
parent 73f98c78de
commit 33dba32226
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -104,9 +104,9 @@ func main() {
mindflowApi := http.NewMindflowApiHandlers(mindflowDB)
srv.POST("/api/mindflow", mindflowApi.New)
srv.PATCH("/api/mindflow/:id", mindflowApi.Edit)
srv.DELETE("/api/mindflow/:id", mindflowApi.Delete)
srv.POST("/api/mindflow", mindflowApi.NewPost)
srv.PATCH("/api/mindflow/:id", mindflowApi.EditPost)
srv.DELETE("/api/mindflow/:id", mindflowApi.DeletePost)
srv.POST("/api/mindflow-category", mindflowApi.NewCategory)
srv.PATCH("/api/mindflow-category/:id", mindflowApi.EditCategory)