Collections::Application.routes.draw do

  mount JasmineRails::Engine => '/specs' if defined?(JasmineRails)
  get "/browse.json" => redirect("/api/tags.json?type=section&root_sections=true")
  get "/browse" => "browse#index", to: "browse#index"
  get "/browse/:top_level_slug", to: "browse#top_level_browse_page"
  get "/browse/:top_level_slug/:second_level_slug", to: "browse#second_level_browse_page"

  get "/:topic_slug/:subtopic_slug/latest", as: "latest_changes", to: "subtopics#latest_changes"
  get "/:topic_slug/:subtopic_slug", as: :subtopic, to: "subtopics#show"
  get "/:topic_slug", to: "topics#show", as: :topic

  get "/:topic_slug/:subtopic_slug/email-signup", to: "email_signups#new", as: "email_signup"
  post "/:topic_slug/:subtopic_slug/email-signup", to: "email_signups#create"
end

Collections::Application.routes.draw do

  mount JasmineRails::Engine => '/specs' if defined?(JasmineRails)
  get "/browse.json" => redirect("/api/tags.json?type=section&root_sections=true")
  get "/browse" => "browse#index", to: "browse#index"
  get "/browse/:top_level_slug", to: "browse#top_level_browse_page"
  get "/browse/:top_level_slug/:second_level_slug", to: "browse#second_level_browse_page"

  # Note that this app only receives requests for routes registered with the
  # content-store (by collections-publisher) - whenever the routes below
  # change, also change the routes claimed by collections-publisher.

  get "/:topic_slug/:subtopic_slug/latest", as: "latest_changes", to: "subtopics#latest_changes"
  get "/:topic_slug/:subtopic_slug", as: :subtopic, to: "subtopics#show"
  get "/:topic_slug", to: "topics#show", as: :topic

  get "/:topic_slug/:subtopic_slug/email-signup", to: "email_signups#new", as: "email_signup"
  post "/:topic_slug/:subtopic_slug/email-signup", to: "email_signups#create"
end

Add note about routing changes
Add note about routing changes

The routes for this app are defined in two places - here and in
collections-publisher. This note reminds us to change both. Would've
prevented https://github.com/alphagov/collections-publisher/pull/93
