Created
April 11, 2014 19:04
-
-
Save naaman/10492798 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get '/api/health/db' do | |
Data.db_ping | |
to_json(status: 'ok') | |
rescue | |
raise UnavailableException | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment