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:
parent
4d0b7403ac
commit
ba1fd4c1d6
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue