Gorilla Mux: Subrouters and Middlewares

Gorilla router: the very basic usage I’ve been using gorilla mux for quite some time. It has pretty much become the de facto as it is convenient and easy to use. Say I am making a web app for organizing events, where it needs to have: A public web interface for users A private web interface for authenticated admins Uses secure cookies An API with authentication Uses an HTTP header To start with, my new router kind of looks like this: [Read More]