Skip to content

Instantly share code, notes, and snippets.

@hassox
Created November 9, 2009 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hassox/229785 to your computer and use it in GitHub Desktop.
Save hassox/229785 to your computer and use it in GitHub Desktop.
##### ROUTER EXAMPLE
MyStack.router do |r|
r.mount(AnotherStack, "/mount/point")
r.add("/foo") do |env|
Rack::Response.new("OK")
end
r.add("/:some/:variable(.:format)").to(MySinatraApp)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment