X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b4791598eab87d948ec0a92d170b09fe50aa55ea..c807e9ba66af36280597594a48767c8562a9451b:/app/controllers/site_controller.rb?ds=sidebyside diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 4b22e46fd..2a826770d 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -1,8 +1,15 @@ class SiteController < ApplicationController + layout 'site',:except => [:key] + before_filter :authorize_web + before_filter :set_locale before_filter :require_user, :only => [:edit] def export render :action => 'index' end + + def key + expires_in 7.days, :public => true + end end