Skip to content

Commit

Permalink
Add RFC 141 healthcheck endpoints
Browse files Browse the repository at this point in the history
Once govuk-puppet has been updated, the old endpoint can be removed.

See the RFC for more details.
  • Loading branch information
barrucadu committed Apr 19, 2021
1 parent 3c20b66 commit 0617c77
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0617c77

Please sign in to comment.