Rails.application.routes.draw do
  with_options format: false do |r|
    r.resources :backends, only: %i[show update destroy]

    r.get "/routes" => "routes#show"
    r.put "/routes" => "routes#update"
    r.delete "/routes" => "routes#destroy"
    r.post "/routes/commit" => "routes#commit"

    r.get "/healthcheck" => proc { [200, {}, %w[OK]] }
  end
end

Rails.application.routes.draw do
  with_options format: false do |r|
    r.resources :backends, only: %i[show update destroy]

    r.get "/routes" => "routes#show"
    r.put "/routes" => "routes#update"
    r.delete "/routes" => "routes#destroy"
    r.post "/routes/commit" => "routes#commit"

    r.get "/healthcheck" => proc { [200, {}, %w[OK]] }

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

Add RFC 141 healthcheck endpoints
Add RFC 141 healthcheck endpoints

I've added another check to this because it uses mongodb.

Once govuk-puppet has been updated, the old endpoint can be removed.

See the RFC for more details.
