Update route.md (#6826)

Remove invalid route example: '/files/myFile.' as the router doesn't match it.
pull/6989/head
davidich 2018-06-11 13:38:31 -07:00 committed by Scott Addie
parent 833bf2db3a
commit bf2248ea85
1 changed files with 0 additions and 1 deletions

View File

@ -258,7 +258,6 @@ Literal text other than route parameters (for example, `{id}`) and the path sepa
URL patterns that attempt to capture a filename with an optional file extension have additional considerations. For example, using the template `files/{filename}.{ext?}` - When both `filename` and `ext` exist, both values will be populated. If only `filename` exists in the URL, the route matches because the trailing period `.` is optional. The following URLs would match this route:
* `/files/myFile.txt`
* `/files/myFile.`
* `/files/myFile`
You can use the `*` character as a prefix to a route parameter to bind to the rest of the URI - this is called a *catch-all* parameter. For example, `blog/{*slug}` would match any URI that started with `/blog` and had any value following it (which would be assigned to the `slug` route value). Catch-all parameters can also match the empty string.