forked from orbit-oss/flask
Add two missing converters for flask in the docs
All converters are from werkzeug's builtin converters. Documentation: http://werkzeug.pocoo.org/docs/dev/routing/#builtin-converters
This commit is contained in:
parent
da0ebb9b78
commit
e0a8fd3162
2 changed files with 4 additions and 0 deletions
|
|
@ -751,6 +751,8 @@ The following converters are available:
|
|||
`int` accepts integers
|
||||
`float` like `int` but for floating point values
|
||||
`path` like the default but also accepts slashes
|
||||
`any` matches one of the items provided
|
||||
`uuid` accepts UUID strings
|
||||
=========== ===============================================
|
||||
|
||||
Custom converters can be defined using :attr:`flask.Flask.url_map`.
|
||||
|
|
|
|||
|
|
@ -204,6 +204,8 @@ The following converters exist:
|
|||
`int` accepts integers
|
||||
`float` like `int` but for floating point values
|
||||
`path` like the default but also accepts slashes
|
||||
`any` matches one of the items provided
|
||||
`uuid` accepts UUID strings
|
||||
=========== ===============================================
|
||||
|
||||
.. admonition:: Unique URLs / Redirection Behavior
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue