From 0617c77971983df1d52a9ebd7c92692e8def1242 Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Mon, 19 Apr 2021 13:04:39 +0100 Subject: [PATCH] Add RFC 141 healthcheck endpoints Once govuk-puppet has been updated, the old endpoint can be removed. See the RFC for more details. --- config/routes.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 9c56526da..1cd261b87 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -13,6 +13,11 @@ GovukHealthcheck::RailsCache, ) + get "/healthcheck/live", to: proc { [200, {}, %w[OK]] } + get "/healthcheck/ready", to: GovukHealthcheck.rack_response( + GovukHealthcheck::RailsCache, + ) + get "/government/uploads/*path" => "asset_manager_redirect#show", format: false # Testing guides as a single page so we redirect parts to the default page