]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/nodes_controller.rb
Refactor api controllers to inherit from a common ApiController
[rails.git] / app / controllers / api / nodes_controller.rb
index 4e46b38d56461c94f50f162169623f1f2ff8a05a..d081b28bb31b45f5c3e8d37a589aabdee0952a2b 100644 (file)
@@ -1,10 +1,9 @@
 # The NodeController is the RESTful interface to Node objects
 
 module Api
-  class NodesController < ApplicationController
+  class NodesController < ApiController
     require "xml/libxml"
 
-    skip_before_action :verify_authenticity_token
     before_action :authorize, :only => [:create, :update, :delete]
     before_action :api_deny_access_handler