Created
December 17, 2014 08:33
-
-
Save leotop/3dbd425086dc4c13d5d4 to your computer and use it in GitHub Desktop.
sinatra
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 'rubygems' | |
require 'sinatra' | |
require "sinatra/json" | |
get '/' do | |
json :foo => 'bar1', :key2 => 'value2' | |
end | |
get '/about' do | |
'Hello world! About1' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment