Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 466 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 466 Bytes

Muxinator

Muxinator is a simple wrapper around the gorilla/mux and urfave/negroni packages to make it easier to build an HTTP router with middleware.

Example

router := muxinator.NewRouter()
router.AddMiddleware(globalMiddleware)
router.Get("/path", middleware1, middleware2)
router.Patch("/path", middleware2, middleware3)
http.ListenAndServe(":80", router.BuildHandler())