Skip to content

Commit

Permalink
Add /up healthcheck endpoint (#3083)
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo authored Feb 12, 2025
1 parent 2a829db commit 657a90e
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 @@ -21,4 +21,9 @@

root to: "passwords#new"
end

# Health check endpoint that returns a simple 200 OK response
get "/up" => proc { |env|
[200, {"Content-Type" => "text/html"}, ["<html style='background:green;width:100%;height:100vh'></html>"]]
}
end

0 comments on commit 657a90e

Please sign in to comment.