docs
This commit is contained in:
parent
9e69922859
commit
3e0599851a
1 changed files with 3 additions and 7 deletions
10
docs/api.md
10
docs/api.md
|
@ -295,16 +295,12 @@ this.type = 'png';
|
||||||
|
|
||||||
### ctx.query
|
### ctx.query
|
||||||
|
|
||||||
Get parsed query-string using [qs](https://github.com/visionmedia/node-querystring). For example with the url "/shoes?page=2&sort=asc&filters[color]=blue"
|
Get parsed query-string, for example "color=blue&size=small":
|
||||||
`this.query` would be the following object:
|
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
page: '2',
|
color: 'blue',
|
||||||
sort: 'asc',
|
size: 'small'
|
||||||
filters: {
|
|
||||||
color: 'blue'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue