this should not be in here
This commit is contained in:
parent
77b4513986
commit
ee20faff85
16
config.ru
16
config.ru
|
@ -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
|
Loading…
Reference in New Issue