Create sitemaps_controller.rb

This commit is contained in:
Tadhg
2019-04-21 16:39:24 -07:00
committed by GitHub
parent 62d5d421b7
commit e98f95adc1

View File

@@ -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