Rails.application.routes.draw do
  root to: 'lookup#new'

  resources :taxons

  controller :lookup do
    get '/lookup', action: :new, as: :lookup
    get '/lookup/:slug', action: :find_by_slug
    post '/lookup', action: :find_by_slug, as: :find_by_slug
  end

  controller :content do
    get '/content/:content_id', action: :show, as: :content
    post '/content/taggings', action: :update_links, as: :content_update_links
  end

  resources :tagging_spreadsheets, except: [:update, :edit] do
    post 'refetch'
    post 'publish_tags'
    get  'import_progress'
  end

  get '/healthcheck', to: proc { [200, {}, ['OK']] }

  if Rails.env.development?
    mount GovukAdminTemplate::Engine, at: '/style-guide'

    require 'sidekiq/web'
    mount Sidekiq::Web => '/sidekiq'
  end
end

Rails.application.routes.draw do
  root to: 'lookup#new'

  resources :taxons

  controller :lookup do
    get '/lookup', action: :new, as: :lookup
    get '/lookup/:slug', action: :find_by_slug
    post '/lookup', action: :find_by_slug, as: :find_by_slug
  end

  controller :content do
    get '/content/:content_id', action: :show, as: :content
    post '/content/taggings', action: :update_links, as: :content_update_links
  end

  resources :tagging_spreadsheets, except: [:update, :edit], path: '/tag-importer' do
    post 'refetch'
    post 'publish_tags'
    get  'import_progress'
  end

  get '/healthcheck', to: proc { [200, {}, ['OK']] }

  if Rails.env.development?
    mount GovukAdminTemplate::Engine, at: '/style-guide'

    require 'sidekiq/web'
    mount Sidekiq::Web => '/sidekiq'
  end
end

Use the same naming on both the nav link and URL
Use the same naming on both the nav link and URL

Before we had a link called "Tag Importer" and a matching URL of
/tagging-spreadsheets. This change makes the naming consistent.
