Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (17 sloc) 0.328 kb
require 'rubygems'
require 'sinatra'
get '/' do
"Hello World!"
end
delete '/' do
"Goodbye World!"
end
post '/name' do
"Hi there #{params[:name]}!"
end
put '/change/something' do
"Changed or something"
end
get %r{/I/am/([\d]+)/years/old} do |age|
puts age # write to the logger. sometimes helpful.
end
Jump to Line
Something went wrong with that request. Please try again.