]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Remove outdated comments
[rails.git] / app / controllers / browse_controller.rb
index 1bbf85adce4d8d619bd0fcd19ee586e518f45585..6c5336908605448679b2111295883862da9c1e03 100644 (file)
@@ -3,8 +3,9 @@ class BrowseController < ApplicationController
 
   before_action :authorize_web
   before_action :set_locale
-  before_action -> { check_database_readable(true) }
+  before_action -> { check_database_readable(:need_api => true) }
   before_action :require_oauth
+  before_action :update_totp, :only => [:query]
   around_action :web_timeout
   authorize_resource :class => false
 
@@ -88,4 +89,6 @@ class BrowseController < ApplicationController
   rescue ActiveRecord::RecordNotFound
     render :action => "not_found", :status => :not_found
   end
+
+  def query; end
 end