code: func NewRouter(routes []Route, resources map[string]string) *Router {
  	mappedRoutes := map[string]Route{}
  	for _, route := range routes {
  		mappedRoutes[route.Name] = route
  	}
  	return &Router{
  		routes:    mappedRoutes,
  		resources: resources,
  	}
  }
docs: // NewRouter returns a pointer to a new Router.