Created
April 5, 2016 23:29
-
-
Save xavdid/0d2cf733131041c500ffa40742f0485c to your computer and use it in GitHub Desktop.
Dirt simple sinatra server
This file contains 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 'sinatra' | |
require 'json' | |
get '/' do | |
'Hello, World!' | |
end | |
get '/data' do | |
{name: 'Sean', age: 24}.to_json | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment