2014-03-28 22:14:37 +00:00
|
|
|
class SitemapController < ApplicationController
|
2015-04-07 20:43:40 +01:00
|
|
|
skip_after_action :verify_authorized
|
2014-03-28 22:14:37 +00:00
|
|
|
|
|
|
|
def show
|
|
|
|
redirect_to "/sitemaps/#{request.host_with_port.gsub(/www./, '')}/sitemap.xml.gz"
|
|
|
|
end
|
|
|
|
|
|
|
|
def robots
|
|
|
|
render file: 'sitemap/robots', layout: false, content_type: Mime::TEXT
|
|
|
|
end
|
|
|
|
|
2015-04-07 20:43:40 +01:00
|
|
|
end
|