Skip to content

Instantly share code, notes, and snippets.

@psylone
Created March 15, 2014 14:02
Show Gist options
  • Save psylone/9567778 to your computer and use it in GitHub Desktop.
Save psylone/9567778 to your computer and use it in GitHub Desktop.
module App
class Root
def call env
[ 200, { 'Content-Type' => 'text/html' }, ["root page"] ]
end
end
class Info
def call env
[ 200, { 'Content-Type' => 'text/html' }, ["info page"] ]
end
end
end
require './app'
map '/' do
run App::Root.new
end
map '/info' do
run App::Info.new
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment