2011-11-30 19:17:23 +01:00
|
|
|
require "sinatra"
|
|
|
|
|
|
|
|
class MySinatra < Sinatra::Base
|
|
|
|
get "/" do
|
|
|
|
"Hello World (Sinatra)"
|
|
|
|
end
|
2013-06-13 18:05:13 +02:00
|
|
|
get "/derp.html" do
|
|
|
|
"De doo"
|
|
|
|
end
|
2011-11-30 19:17:23 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
map "/sinatra" do
|
|
|
|
run MySinatra
|
2012-08-14 00:39:06 +02:00
|
|
|
end
|