Created
November 9, 2009 08:31
-
-
Save hassox/229785 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
##### 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