]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/capabilities_controller.rb
Remove unnecessary user menu wrapper
[rails.git] / app / controllers / api / capabilities_controller.rb
index 8337bc8091ee6d1229f5727fca88cb42cc41f54e..80222c40bd93fb622753a5d672841cbe1fa2d12d 100644 (file)
@@ -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