Created
March 25, 2016 14:11
-
-
Save thilonel/33875cdc8d444f0c8c85 to your computer and use it in GitHub Desktop.
simple_api
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
require 'rack/app' | |
class App < Rack::App | |
desc 'health check endpoint' | |
get '/' do | |
'OK' | |
end | |
get '/hello' do | |
return 'Hello World' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment