Skip to content

Commit

Permalink
Merge pull request #7 from alphagov/healthcheck
Browse files Browse the repository at this point in the history
Add healthcheck routes
  • Loading branch information
csutter authored Nov 20, 2023
2 parents 16af5d9 + 8878ec5 commit 3d4554a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Rails.application.routes.draw do
mount GovukPublishingComponents::Engine, at: "/component-guide" if Rails.env.development?

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

resource :search, only: %i[show]
resource :feedback, only: %i[create]

Expand Down

0 comments on commit 3d4554a

Please sign in to comment.