Skip to content

Instantly share code, notes, and snippets.

@wimpog
Created April 6, 2020 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wimpog/8d5bd61b76b7a6ebbb6ac95de2a591d8 to your computer and use it in GitHub Desktop.
Save wimpog/8d5bd61b76b7a6ebbb6ac95de2a591d8 to your computer and use it in GitHub Desktop.
class HealthCheck
def initialize(app)
@app = app
end
def call(env)
if env['PATH_INFO'] == '/health_check'
[200, {'Content-Type' => 'text/html'}, ['HELLO']]
else
@app.call(env)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment