Renamed mindflowApi methods for posts in main.
This commit is contained in:
parent
73f98c78de
commit
33dba32226
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user