class Middleman::Sitemap::Extensions::RequestEndpoints

def create_endpoint(path, opts={}, &block)

def create_endpoint(path, opts={}, &block)
  endpoint = {
    request_path: path
  }
  if block_given?
    endpoint[:output] = block
  else
    endpoint[:request_path] = opts[:path] if opts.key?(:path)
  end
  @endpoints[path] = endpoint
  @app.sitemap.rebuild_resource_list!(:added_endpoint)
end