jakewright / muxinator

Simple wrapper around gorilla/mux and urfave/negroni to make it easy to build a router with middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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())

About

Simple wrapper around gorilla/mux and urfave/negroni to make it easy to build a router with middleware

License:MIT License


Languages

Language:Go 100.0%