Created
November 21, 2014 12:36
-
-
Save leotop/f500a14ef6e0d7971e0f to your computer and use it in GitHub Desktop.
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