Skip to content

Instantly share code, notes, and snippets.

@leotop
Created December 17, 2014 08:33
Show Gist options
  • Save leotop/3dbd425086dc4c13d5d4 to your computer and use it in GitHub Desktop.
Save leotop/3dbd425086dc4c13d5d4 to your computer and use it in GitHub Desktop.
sinatra
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