]> git.openstreetmap.org Git - rails.git/commitdiff
Make the versions call default to XML
authorTom Hughes <tom@compton.nu>
Fri, 18 Aug 2023 18:26:53 +0000 (19:26 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 18 Aug 2023 18:26:53 +0000 (19:26 +0100)
app/controllers/api/versions_controller.rb

index 7de335091e2a92d754d84723bc8722ea7cb29a77..d5c9c5f87cebf2036316655c72013b49b55b4832 100644 (file)
@@ -2,6 +2,7 @@ module Api
   class VersionsController < ApiController
     authorize_resource :class => false
 
+    before_action :set_request_formats
     around_action :api_call_handle_error, :api_call_timeout
 
     # Show the list of available API versions. This will replace the global