code: function buildRoute({ serviceBaseUrl, withTenant, withFeed }) {
    let result
    if (withTenant) {
      result = new RouteBuilder().push(`(?:(.+)\\.)?${serviceBaseUrl}`, 'tenant')
    } else {
      result = new RouteBuilder({ base: serviceBaseUrl })
    }
    if (withFeed) {
      result.push('([^/]+)', 'feed')
    }
    return result
  }
docs: /*
  Build the Shields service URL object for the given service configuration. Return
  the RouteBuilder instance to which the service can add the route.