X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/73214da35de30b3466cf8d0ab751955ec9292ec4..fe81ac334cfef04751a959297dca24e472cb025f:/app/controllers/api/capabilities_controller.rb diff --git a/app/controllers/api/capabilities_controller.rb b/app/controllers/api/capabilities_controller.rb index 8337bc809..b0600ca33 100644 --- a/app/controllers/api/capabilities_controller.rb +++ b/app/controllers/api/capabilities_controller.rb @@ -1,11 +1,10 @@ module Api - class CapabilitiesController < ApplicationController - skip_before_action :verify_authenticity_token - before_action :api_deny_access_handler + class CapabilitiesController < ApiController + skip_before_action :check_api_readable authorize_resource :class => false - around_action :api_call_handle_error, :api_call_timeout + before_action :set_request_formats # External apps that use the api are able to query the api to find out some # parameters of the API. It currently returns: