code: func newRouter(p *producerImpl) *mux.Router {
  
  	router := mux.NewRouter().StrictSlash(true)
  	if p.config.DCOSRole == "agent" {
  		loadRoutes(agentRoutes, router, p)
  	}
  
  	loadRoutes(routes, router, p)
  
  	return router
  }
docs: // NewRouter iterates over a slice of Route types and creates them
  // in gorilla/mux.