]> 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 d21a6449781e8779009e7bedb7be71159a887630..c152c6272266a352c9d2f1d5b5dbfcf6b2d81263 100644 (file)
@@ -9,6 +9,7 @@ module Api
 
     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