Created
December 9, 2008 17:53
-
-
Save sco/34010 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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