Ejemplo n.º 1
0
func configureRouting(c *config.Configuration, stack *middleware.MiddlewareStack) {
	c.Router = mux.NewRouter()
	c.Router.StrictSlash(true)

	registerSubroutes(c.Router.PathPrefix("/todos").Subrouter(), todos.Routes)

	stack.UseHandler(c.Router)
}
Ejemplo n.º 2
0
func configureRender(c *config.Configuration, stack *middleware.MiddlewareStack) {
	c.Render = render.New()
}