diff --git a/app/controllers/sitemaps_controller.rb b/app/controllers/sitemaps_controller.rb new file mode 100644 index 0000000..bde01c8 --- /dev/null +++ b/app/controllers/sitemaps_controller.rb @@ -0,0 +1,16 @@ +class SitemapsController < ApplicationController + + layout :false + before_action :init_sitemap + + def index + @forums = Forum.all + end + + private + + def init_sitemap + headers['Content-Type'] = 'application/xml' + end + +end