Module: Middleman::Sitemap::Extensions::RequestEndpoints::InstanceMethods

Defined in:
lib/middleman-core/sitemap/extensions/request_endpoints.rb

Overview

if proxy?

    proxied_to_resource.content_type
  else
    nil
  end
end

end

Instance Method Summary collapse

Instance Method Details

#endpoint(*args, &block) ⇒ Object



87
88
89
# File 'lib/middleman-core/sitemap/extensions/request_endpoints.rb', line 87

def endpoint(*args, &block)
  endpoint_manager.create_endpoint(*args, &block)
end

#endpoint_managerObject



83
84
85
# File 'lib/middleman-core/sitemap/extensions/request_endpoints.rb', line 83

def endpoint_manager
  @_endpoint_manager ||= EndpointManager.new(self)
end