From c58f4e4813bd80ba8f082b6925fc2f92aa1eea7d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 18 Aug 2023 19:26:53 +0100 Subject: [PATCH] Make the versions call default to XML --- app/controllers/api/versions_controller.rb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5