X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/be0e33862fedbf02e52a9e126cac31dfb5775b43..a18366903e7c150a1e8980bf7e46777f48ca4e39:/app/controllers/api/capabilities_controller.rb?ds=sidebyside diff --git a/app/controllers/api/capabilities_controller.rb b/app/controllers/api/capabilities_controller.rb index 8337bc809..80222c40b 100644 --- a/app/controllers/api/capabilities_controller.rb +++ b/app/controllers/api/capabilities_controller.rb @@ -1,10 +1,8 @@ module Api - class CapabilitiesController < ApplicationController - skip_before_action :verify_authenticity_token - before_action :api_deny_access_handler - + 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