]> git.openstreetmap.org Git - rails.git/commitdiff
Make the capabilities call default to XML
authorTom Hughes <tom@compton.nu>
Sun, 13 Aug 2023 11:48:02 +0000 (12:48 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 13 Aug 2023 11:48:02 +0000 (12:48 +0100)
app/controllers/api/capabilities_controller.rb

index 7f91557f85849b74bf749daf590dbe77aa3f582d..80222c40bd93fb622753a5d672841cbe1fa2d12d 100644 (file)
@@ -2,6 +2,7 @@ module Api
   class CapabilitiesController < ApiController
     authorize_resource :class => false
 
+    before_action :set_request_formats
     around_action :api_call_handle_error, :api_call_timeout
 
     # External apps that use the api are able to query the api to find out some