-`req.cookies` - An object containing the cookies sent by the request. Defaults to `{}`
-`req.query` - An object containing the [query string](https://en.wikipedia.org/wiki/Query_string). Defaults to `{}`
-`req.body` - An object containing the body parsed by `content-type`, or `null` if no body was sent
## Custom config
Every API route can export a `config` object to change the default configs, which are the following:
```js
export const config = {
api: {
bodyParser: {
sizeLimit: '1mb',
},
},
}
```
The `api` object includes all configs available for API routes.
`bodyParser` Enables body parsing, you can disable it if you want to consume it as a `Stream`:
```js
export const config = {
api: {
bodyParser: false,
},
}
```
`bodyParser.sizeLimit` is the maximum size allowed for the parsed body, in any format supported by [bytes](https://github.com/visionmedia/bytes.js), like so:
`externalResolver` is an explicit flag that tells the server that this route is being handled by an external resolver like _express_ or _connect_. Enabling this option disables warnings for unresolved requests.
For example, [configuring CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) for your API endpoint can be done leveraging the [cors](https://www.npmjs.com/package/cors) package.