1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/app/middleware/heartbeat.rb
2013-01-31 08:34:11 +00:00

18 lines
250 B
Ruby

class Heartbeat
def initialize(app)
@app = app
end
def call(env)
if env['PATH_INFO'] == '/heartbeat'
[
200,
{"Content-Type" => "text/plain"},
["OK"]
]
else
@app.call(env)
end
end
end