You are here: Home » NewsFeeds » Macaron: a high productive and modular web framework in Go

Macaron: a high productive and modular web framework in Go

m.Group(“/books”, func() {
m.Get(“/:id”, GetBooks)
m.Post(“/new”, NewBook)
m.Put(“/update/:id”, UpdateBook)
m.Delete(“/delete/:id”, DeleteBook)

m.Group(“/chapters”, func() {
m.Get(“/:id”, GetBooks)
m.Post(“/new”, NewBook)
m.Put(“/update/:id”, UpdateBook)
m.Delete(“/delete/:id”, DeleteBook)
}, MyMiddleware3, MyMiddleware4)
}, MyMiddleware1, MyMiddleware2)


 

Original article