]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Remove remaining action cache usage and related infrastructure
[rails.git] / app / controllers / site_controller.rb
index 606143f4f9ceaaa48fe79c40a1d6def05216f0a9..0e26185a1e34325a5fecb87ec3d50856e7a18a7a 100644 (file)
@@ -5,6 +5,7 @@ class SiteController < ApplicationController
   before_filter :authorize_web
   before_filter :set_locale
   before_filter :require_user, :only => [:edit]
+  before_filter :require_oauth, :only => [:index]
 
   def index
     unless STATUS == :database_readonly or STATUS == :database_offline
@@ -64,4 +65,8 @@ class SiteController < ApplicationController
   def preview
     render :text => RichText.new(params[:format], params[:text]).to_html
   end
+
+  def id
+    render "id", :layout => false
+  end
 end