Skip to content

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

License

Notifications You must be signed in to change notification settings

jakewright/muxinator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages