code: func HasCatchAllInRootRoute(apiDef *raml.APIDefinition) bool {
  	rootCatchAllRoute := "/" + CatchAllRoute
  	for endpoint := range apiDef.Resources {
  		if endpoint == rootCatchAllRoute {
  			return true
  		}
  	}
  	return false
  }
docs: // HasCatchAllInRootRoute returns true if the given
  // raml api definition has catch all route as root endpoint