Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add example for MultiRoute with multiple verbs and multiple routes #70

Closed
wants to merge 1 commit into from

2 participants

@voidlily

Sinatra::MultiRoute already had support for this feature. I just added docs for it.

@rkh
Owner

That file is generated. Please submit patch to sinatra-contrib.

@rkh rkh closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 26, 2012
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0 _includes/sinatra-multi-route.html
View
6 _includes/sinatra-multi-route.html
@@ -17,6 +17,12 @@
# ...
end</pre>
+<p>Or for multiple verbs and multiple routes:</p>
+
+<pre>route :get, :post, ['/foo', '/bar'] do
+ # ...
+end</pre>
+
<p>Or even for custom verbs:</p>
<pre>route 'LIST', '/' do
Something went wrong with that request. Please try again.