Sha256: 4679c4104b74ec19792471daaf7e928b61d2f467d7a012b56b1c6ca14914dee3

Contents?: true

Size: 333 Bytes

Versions: 7

Compression:

Stored size: 333 Bytes

Contents

module Pageflow
  # @api private
  class SitemapsController < Pageflow::ApplicationController
    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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/controllers/pageflow/sitemaps_controller.rb
pageflow-17.0.3 app/controllers/pageflow/sitemaps_controller.rb
pageflow-17.0.2 app/controllers/pageflow/sitemaps_controller.rb
pageflow-17.0.1 app/controllers/pageflow/sitemaps_controller.rb
pageflow-17.0.0 app/controllers/pageflow/sitemaps_controller.rb
pageflow-16.2.0 app/controllers/pageflow/sitemaps_controller.rb
pageflow-16.1.0 app/controllers/pageflow/sitemaps_controller.rb