Skip to content

Instantly share code, notes, and snippets.

@sco
Created December 9, 2008 17:53
Show Gist options
  • Save sco/34010 to your computer and use it in GitHub Desktop.
Save sco/34010 to your computer and use it in GitHub Desktop.
odds_server = Proc.new do |env|
if env['PATH_INFO'] == '/odds'
[200, {'Content-Type'=>'application/json'}, '{claim_code:"123-sdfjhsdf"}']
else
[404, {}, '']
end
end
run Rack::Cascade.new([odds_server, Merb::Rack::Application.new])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment