Fix curly braces. (#1606)

pull/1621/head
Tatsuro Shibamura 2016-07-06 01:24:12 +09:00 committed by Rick Anderson
parent 4c04a3458e
commit 2f4701c538
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ Clients can request a particular format as part of the URL, such as in the query
[FormatFilter]
public class ProductsController
{
[Route("[controller]/[action]/[id].{format?}")]
[Route("[controller]/[action]/{id}.{format?}")]
public Product GetById(int id)
This route would allow the requested format to be specified as an optional file extension. The ``[FormatFilter]`` attribute checks for the existence of the format value in the ``RouteData`` and will map the response format to the appropriate formatter when the response is created.