# Help methods for checking boundary sanity and area size
include MapBoundary
+ skip_before_filter :verify_authenticity_token
before_filter :check_api_writable
# Main AMF handlers: process the raw AMF string (using AMF library) and
class ApiController < ApplicationController
+ skip_before_filter :verify_authenticity_token
before_filter :check_api_readable, :except => [:capabilities]
after_filter :compress_output
around_filter :api_call_handle_error, :api_call_timeout
layout 'site'
require 'xml/libxml'
+ skip_before_filter :verify_authenticity_token, :except => [:list]
before_filter :authorize_web, :only => [:list]
before_filter :set_locale, :only => [:list]
before_filter :authorize, :only => [:create, :update, :delete, :upload, :include, :close]
class NodeController < ApplicationController
require 'xml/libxml'
+ skip_before_filter :verify_authenticity_token
before_filter :authorize, :only => [:create, :update, :delete]
before_filter :require_allow_write_api, :only => [:create, :update, :delete]
before_filter :require_public_data, :only => [:create, :update, :delete]
class OldNodeController < ApplicationController
require 'xml/libxml'
+ skip_before_filter :verify_authenticity_token
before_filter :check_api_readable
after_filter :compress_output
around_filter :api_call_handle_error, :api_call_timeout
class OldRelationController < ApplicationController
require 'xml/libxml'
+ skip_before_filter :verify_authenticity_token
before_filter :check_api_readable
after_filter :compress_output
around_filter :api_call_handle_error, :api_call_timeout
class OldWayController < ApplicationController
require 'xml/libxml'
+ skip_before_filter :verify_authenticity_token
before_filter :check_api_readable
after_filter :compress_output
around_filter :api_call_handle_error, :api_call_timeout
class RelationController < ApplicationController
require 'xml/libxml'
+ skip_before_filter :verify_authenticity_token
before_filter :authorize, :only => [:create, :update, :delete]
before_filter :require_allow_write_api, :only => [:create, :update, :delete]
before_filter :require_public_data, :only => [:create, :update, :delete]
# Support searching for nodes, ways, or all
# Can search by tag k, v, or both (type->k,value->v)
# Can search by name (k=name,v=....)
+ skip_before_filter :verify_authenticity_token
after_filter :compress_output
def search_all
class SwfController < ApplicationController
+ skip_before_filter :verify_authenticity_token
before_filter :check_api_readable
# to log:
class TraceController < ApplicationController
layout 'site'
+ skip_before_filter :verify_authenticity_token, :only => [:api_create, :api_read, :api_update, :api_delete, :api_data]
before_filter :authorize_web
before_filter :set_locale
before_filter :require_user, :only => [:mine, :create, :edit, :delete]
class UserController < ApplicationController
layout :choose_layout
+ skip_before_filter :verify_authenticity_token, :only => [:api_details, :api_gpx_files]
before_filter :disable_terms_redirect, :only => [:terms, :save, :logout, :api_details]
before_filter :authorize, :only => [:api_details, :api_gpx_files]
before_filter :authorize_web, :except => [:api_details, :api_gpx_files]
# Update and read user preferences, which are arbitrayr key/val pairs
class UserPreferenceController < ApplicationController
+ skip_before_filter :verify_authenticity_token
before_filter :authorize
before_filter :require_allow_read_prefs, :only => [:read_one, :read]
before_filter :require_allow_write_prefs, :except => [:read_one, :read]
class WayController < ApplicationController
require 'xml/libxml'
+ skip_before_filter :verify_authenticity_token
before_filter :authorize, :only => [:create, :update, :delete]
before_filter :require_allow_write_api, :only => [:create, :update, :delete]
before_filter :require_public_data, :only => [:create, :update, :delete]