0
0
Fork 0

this should not be in here

This commit is contained in:
Gibheer 2012-11-08 21:30:16 +01:00
parent 77b4513986
commit ee20faff85
1 changed files with 0 additions and 16 deletions

View File

@ -1,16 +0,0 @@
require File.expand_path('../lib/zero.rb', __FILE__)
require 'json'
class Foo
def call(env)
req = Rack::Request.new(env)
[200, {'Content-Type' => 'text/html'}, ["this works #{req.params.inspect}"]]
end
end
routes = Zero::Router.new(
'/foo/:id' => Foo.new,
'/' => Foo.new
)
run routes