summaryrefslogtreecommitdiff
path: root/app/controllers/sitemap_controller.rb
blob: bc1247c9887cfd231a22e6dc954e1af7eb889051 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class SitemapController < ApplicationController
  layout nil

  def index
    @creations = Creation.all
    @tutorials = Tutorial.all
    @base_url = "https://#{request.host_with_port}"
    headers['Content-Type'] = 'application/xml'
    expires_in(1.hour)
    respond_to do |format|
      format.xml
    end
  end
end