]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/notes_controller.rb
Allow setting HTTP ACCEPT header for notes API
[rails.git] / app / controllers / api / notes_controller.rb
index 7454e7f19387ee178c97ce8efb8f751b2bb4972d..c152c6272266a352c9d2f1d5b5dbfcf6b2d81263 100644 (file)
@@ -2,13 +2,14 @@ module Api
   class NotesController < ApiController
     before_action :check_api_readable
     before_action :check_api_writable, :only => [:create, :comment, :close, :reopen, :destroy]
-    before_action :setup_user_auth, :only => [:create, :comment, :show]
+    before_action :setup_user_auth, :only => [:create, :show]
     before_action :authorize, :only => [:close, :reopen, :destroy, :comment]
 
     authorize_resource
 
     before_action :set_locale
     around_action :api_call_handle_error, :api_call_timeout
+    before_action :set_request_formats, :except => [:feed]
 
     ##
     # Return a list of notes in a given area