# Here you can override or add to the pages in the core website

Rails.application.routes.draw do
  # Add a route for the survey
  scope '/profile/survey' do
    root :to => 'user#survey', :as => :survey
    get '/reset' => 'user#survey_reset', :as => :survey_reset
  end

  get "/help/ico-guidance-for-authorities" => redirect("https://ico.org.uk/media/for-organisations/documents/how-to-disclose-information-safely-removing-personal-data-from-information-requests-and-datasets/2013958/how-to-disclose-information-safely.pdf"),
  :as => :ico_guidance
end

# Here you can override or add to the pages in the core website

Rails.application.routes.draw do
  get '/london' => redirect('/body?tag=london', status: 302)

  # Add a route for the survey
  scope '/profile/survey' do
    root :to => 'user#survey', :as => :survey
    get '/reset' => 'user#survey_reset', :as => :survey_reset
  end

  get "/help/ico-guidance-for-authorities" => redirect("https://ico.org.uk/media/for-organisations/documents/how-to-disclose-information-safely-removing-personal-data-from-information-requests-and-datasets/2013958/how-to-disclose-information-safely.pdf"),
  :as => :ico_guidance
end

Add redirect for /london authorities
Add redirect for /london authorities

This mirrors the behaviour of `GET /local/london`.

Eventually we'll want to make `/london` a landing page in its own right,
but this just makes the URL accessible in case we want to get it out in
to marketing material.

See https://github.com/mysociety/whatdotheyknow-theme/issues/416.
