1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Updated README.rdoc to reflect added OPTIONS request type.

Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
This commit is contained in:
jammur 2010-11-29 15:08:44 -05:00 committed by Konstantin Haase
parent 4d0b7403ac
commit ba1fd4c1d6

View file

@ -37,6 +37,10 @@ Each route is associated with a block:
delete '/' do
.. annihilate something ..
end
options '/' do
.. appease something ..
end
Routes are matched in the order they are defined. The first route that
matches the request is invoked.
@ -977,7 +981,7 @@ scope via the `settings` helper:
You have the request scope binding inside:
* get/head/post/put/delete blocks
* get/head/post/put/delete/options blocks
* before/after filters
* helper methods
* templates/views