Publisher::Application.routes.draw do
  resources :notes
  resources :expectations, :except => [:edit, :update, :destroy]

  resources :editions do
    member do
      get 'diff'
      post 'duplicate'
      post 'progress'
      post 'skip_fact_check', to: 'editions#progress',
        activity: { request_type: 'skip_fact_check', comment: "Fact check skipped by request."}
    end
  end

  match 'reports' => 'reports#index', as: :reports
  match 'reports/progress' => 'reports#progress', as: :progress_report
  get 'reports/business_support_schemes_content' => 'reports#business_support_schemes_content', :as => :business_support_report

  match 'user_search' => 'user_search#index'

  resources :publications
  root :to => 'root#index'

  # We used to nest all URLs under /admin so we now redirect that
  # in case people had bookmarks set up. Using a proc as otherwise the
  # path parameter gets escaped
  get "/admin(/*path)", to: redirect { |params, req| "/#{params[:path]}" }
end

Publisher::Application.routes.draw do
  resources :notes
  resources :expectations, :except => [:edit, :update, :destroy]

  resources :editions do
    member do
      get 'diff'
      post 'duplicate'
      post 'progress'
      post 'skip_fact_check', to: 'editions#progress',
        activity: { request_type: 'skip_fact_check', comment: "Fact check skipped by request."}
    end
  end

  match 'reports' => 'reports#index', as: :reports
  match 'reports/progress' => 'reports#progress', as: :progress_report
  get 'reports/business_support_schemes_content' => 'reports#business_support_schemes_content', :as => :business_support_report

  match 'user_search' => 'user_search#index'

  resources :publications
  root :to => 'root#index'

  # We used to nest all URLs under /admin so we now redirect that
  # in case people had bookmarks set up. Using a proc as otherwise the
  # path parameter gets escaped
  get "/admin(/*path)", to: redirect { |params, req| "/#{params[:path]}" }

  mount GovukAdminTemplate::Engine, at: "/style-guide"
end

Include admin template style guide
Include admin template style guide

* Keep a reference to admin design patterns
* Show how local styles may have affected those patterns
