func configureRouting(c *config.Configuration, stack *middleware.MiddlewareStack) { c.Router = mux.NewRouter() c.Router.StrictSlash(true) registerSubroutes(c.Router.PathPrefix("/todos").Subrouter(), todos.Routes) registerSubroutes(c.Router.PathPrefix("/reports").Subrouter(), reports.Routes) stack.UseHandler(c.Router) }
func configureRender(c *config.Configuration, stack *middleware.MiddlewareStack) { c.Render = render.New() }