module Api
class ChangesetsController < ApiController
- require "xml/libxml"
-
before_action :check_api_writable, :only => [:create, :update, :upload, :subscribe, :unsubscribe]
before_action :check_api_readable, :except => [:create, :update, :upload, :download, :query, :subscribe, :unsubscribe]
before_action :setup_user_auth, :only => [:show]
module Api
class NodesController < ApiController
- require "xml/libxml"
-
before_action :check_api_writable, :only => [:create, :update, :delete]
before_action :check_api_readable, :except => [:create, :update, :delete]
before_action :authorize, :only => [:create, :update, :delete]
# nodes, ways and relations are basically identical.
module Api
class OldController < ApiController
- require "xml/libxml"
-
before_action :check_api_readable
before_action :check_api_writable, :only => [:redact]
before_action :setup_user_auth, :only => [:history, :show]
module Api
class RelationsController < ApiController
- require "xml/libxml"
-
before_action :check_api_writable, :only => [:create, :update, :delete]
before_action :check_api_readable, :except => [:create, :update, :delete]
before_action :authorize, :only => [:create, :update, :delete]
module Api
class WaysController < ApiController
- require "xml/libxml"
-
before_action :check_api_writable, :only => [:create, :update, :delete]
before_action :check_api_readable, :except => [:create, :update, :delete]
before_action :authorize, :only => [:create, :update, :delete]
include UserMethods
layout "site"
- require "xml/libxml"
before_action :authorize_web
before_action :set_locale