Module: Cms::Routes

Defined in:
lib/bcms_seo_sitemap/routes.rb

Instance Method Summary collapse

Instance Method Details

#routes_for_bcms_seo_sitemapObject


2
3
4
5
6
7
8
# File 'lib/bcms_seo_sitemap/routes.rb', line 2

def routes_for_bcms_seo_sitemap
  google_sitemap '/sitemaps/google.xml', :controller => 'sitemaps', :action => 'google'
  namespace :cms do |cms|
    cms.xml_sitemaps 'xml_sitemaps', :controller => 'sitemaps', :action => 'edit', :conditions => {:method => :get}
    cms.connect '/xml_sitemaps', :controller => 'sitemaps', :action => 'update' , :conditions => {:method => :put}
  end
end