Skip to content

Commit 0516b7b

Browse files
committed
doc tweaks
1 parent 0127fb8 commit 0516b7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ module.exports = (api, opts) => {
196196
}
197197
```
198198

199-
Even though both modules create a `/product` route, Lambda API will add the `prefix` to them creating two unique routes. Your users can now access:
199+
Even though both modules create a `/product` route, Lambda API will add the `prefix` to them, creating two unique routes. Your users can now access:
200200
- `/v1/product`
201201
- `/v2/product`
202202

@@ -407,9 +407,9 @@ res.attachment('path/to/logo.png')
407407
This transfers the `file` (either a local path, S3 file reference, or Javascript `Buffer`) as an "attachment". This is a convenience method that combines `attachment()` and `sendFile()` to prompt the user to download the file. This method optionally takes a `filename` as a second parameter that will overwrite the "filename=" parameter of the `Content-Disposition` header, otherwise it will use the filename from the `file`. An optional `options` object passes through to the [sendFile()](#sendfilefile--options--callback) method and takes the same parameters. Finally, a optional `callback` method can be defined which is passed through to [sendFile()](#sendfilefile--options--callback) as well.
408408

409409
```javascript
410-
res.download('/files/sales-report.pdf')
410+
res.download('./files/sales-report.pdf')
411411

412-
res.download('/files/sales-report.pdf', 'report.pdf')
412+
res.download('./files/sales-report.pdf', 'report.pdf')
413413

414414
res.download('s3://my-bucket/path/to/file.png', 'logo.png', { maxAge: 3600000 })
415415

@@ -591,4 +591,4 @@ Routes must be configured in API Gateway in order to support routing to the Lamb
591591
Simply create a `{proxy+}` route that uses the `ANY` method and all requests will be routed to your Lambda function and processed by the `lambda-api` module. In order for a "root" path mapping to work, you also need to create an `ANY` route for `/`.
592592

593593
## Contributions
594-
Contributions, ideas and bug reports are welcome and greatly appreciated. Please add [issues](https://github.com/jeremydaly/lambda-api/issues) for suggestions and bugs reports.
594+
Contributions, ideas and bug reports are welcome and greatly appreciated. Please add [issues](https://github.com/jeremydaly/lambda-api/issues) for suggestions and bug reports.

0 commit comments

Comments
 (0)