Class: Landable::Public::SitemapController

Inherits:
ApplicationController show all
Defined in:
app/controllers/landable/public/sitemap_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
10
11
12
13
14
15
# File 'app/controllers/landable/public/sitemap_controller.rb', line 6

def index
  sitemap = Landable::Page.generate_sitemap(
    host: Landable.configuration.sitemap_host || request.host,
    protocol: Landable.configuration.sitemap_protocol,
    exclude_categories: Landable.configuration.sitemap_exclude_categories,
    sitemap_additional_paths: Landable.configuration.sitemap_additional_paths
  )

  render xml: sitemap
end