Class: BlacklightDynamicSitemap::SitemapController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/blacklight_dynamic_sitemap/sitemap_controller.rb

Overview

Controller to handle the on-the-fly sitemap generation

Instance Method Summary collapse

Instance Method Details

#indexObject



11
12
13
# File 'app/controllers/blacklight_dynamic_sitemap/sitemap_controller.rb', line 11

def index
  @sitemaps = BlacklightDynamicSitemap::Sitemap.new.list
end

#showObject



7
8
9
# File 'app/controllers/blacklight_dynamic_sitemap/sitemap_controller.rb', line 7

def show
  @sitemap_entries = BlacklightDynamicSitemap::Sitemap.new.get(id)
end