```ruby
Rails.application.routes.draw do
  get "/healthcheck",
      to: GovukHealthcheck.rack_response(
        GovukHealthcheck::SidekiqRedis,
      )

  get "/rebuild-healthcheck", to: proc { [200, {}, %w[OK]] }
  post "/preview", to: "govspeak#preview"
  get "/error", to: "passthrough#error"

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

  resources :document_list_export_request, path: "/export/:document_type_slug", param: :export_id, only: [:show]

  resources :documents, path: "/:document_type_slug", param: :content_id_and_locale, except: :destroy do
    collection do
      resource :export, only: %i[show create], as: :export_documents
    end
    resources :attachments, param: :attachment_content_id, except: %i[index show]

    post :unpublish, on: :member
    post :publish, on: :member
    post :discard, on: :member
  end

  root to: "passthrough#index"
end
```

Add RFC 141 healthcheck endpoints
user
```ruby
Rails.application.routes.draw do
  get "/healthcheck",
      to: GovukHealthcheck.rack_response(
        GovukHealthcheck::SidekiqRedis,
      )

  get "/rebuild-healthcheck", to: proc { [200, {}, %w[OK]] }

  get "/healthcheck/live", to: proc { [200, {}, %w[OK]] }
  get "/healthcheck/ready", to: GovukHealthcheck.rack_response(
    GovukHealthcheck::SidekiqRedis,
  )

  post "/preview", to: "govspeak#preview"
  get "/error", to: "passthrough#error"

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

  resources :document_list_export_request, path: "/export/:document_type_slug", param: :export_id, only: [:show]

  resources :documents, path: "/:document_type_slug", param: :content_id_and_locale, except: :destroy do
    collection do
      resource :export, only: %i[show create], as: :export_documents
    end
    resources :attachments, param: :attachment_content_id, except: %i[index show]

    post :unpublish, on: :member
    post :publish, on: :member
    post :discard, on: :member
  end

  root to: "passthrough#index"
end
```
assistant