From: Tom Hughes Date: Fri, 18 Aug 2023 18:26:53 +0000 (+0100) Subject: Make the versions call default to XML X-Git-Tag: live~671 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c58f4e4813bd80ba8f082b6925fc2f92aa1eea7d Make the versions call default to XML --- diff --git a/app/controllers/api/versions_controller.rb b/app/controllers/api/versions_controller.rb index 7de335091..d5c9c5f87 100644 --- a/app/controllers/api/versions_controller.rb +++ b/app/controllers/api/versions_controller.rb @@ -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