code: func hasAbsoluteRoutes(api *design.APIDefinition) bool {
  	hasAbsoluteRoutes := false
  	for _, res := range api.Resources {
  		for _, fs := range res.FileServers {
  			if !mustGenerate(fs.Metadata) {
  				continue
  			}
  			hasAbsoluteRoutes = true
  			break
  		}
  		for _, a := range res.Actions {
  			if !mustGenerate(a.Metadata) {
  				continue
  			}
  			for _, ro := range a.Routes {
  				if ro.IsAbsolute() {
  					hasAbsoluteRoutes = true
  					break
  				}
  			}
  			if hasAbsoluteRoutes {
  				break
  			}
  		}
  		if hasAbsoluteRoutes {
  			break
  		}
  	}
  	return hasAbsoluteRoutes
  }
docs: // hasAbsoluteRoutes returns true if any action exposed by the API uses an absolute route of if the
  // API has file servers. This is needed as Swagger does not support exceptions to the base path so
  // if the API has any absolute route the base path must be "/" and all routes must be absolutes.