Class: Pageflow::SitemapsController Private

Inherits:
ApplicationController show all
Defined in:
app/controllers/pageflow/sitemaps_controller.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#indexObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



4
5
6
7
8
9
10
11
12
13
# File 'app/controllers/pageflow/sitemaps_controller.rb', line 4

def index
  site = Site.for_request(request).first!
  return head 404 unless site.sitemap_enabled?

  @entries = Sitemaps.entries_for(site: site)

  respond_to do |format|
    format.xml
  end
end