From f0590458484a5bb9a63e549303df7275cf58a69b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 13 Aug 2023 12:48:02 +0100 Subject: [PATCH] Make the capabilities call default to XML --- app/controllers/api/capabilities_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/api/capabilities_controller.rb b/app/controllers/api/capabilities_controller.rb index 7f91557f8..80222c40b 100644 --- a/app/controllers/api/capabilities_controller.rb +++ b/app/controllers/api/capabilities_controller.rb @@ -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 -- 2.39.5