Skip to content

Commit 4c8da38

Browse files
committed
fixing docs
1 parent 7bb5d65 commit 4c8da38

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ npm i fast-gateway
2222
## Usage
2323
Next we describe two examples proxying HTTP and Lambda downstream services.
2424
> For simplicity of reading, both examples are separated, however a single gateway configuration supports all routes configurations.
25-
### HTTP Proxying
25+
### HTTP proxying
2626
#### Gateway
2727
```js
2828
const gateway = require('fast-gateway')
@@ -43,7 +43,7 @@ service.get('/get', (req, res) => res.send('Hello World!'))
4343
service.start(3000)
4444
```
4545

46-
### Lambda Proxying
46+
### AWS Lambda proxying
4747
#### Gateway
4848
```bash
4949
npm i http-lambda-proxy
@@ -65,12 +65,13 @@ server.start(8080)
6565
```
6666
> You might also want to read: [Setting AWS Credentials in Node.js](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials-node.html)
6767
68-
#### Lambda Implementation
68+
#### Function implementation
6969
```js
7070
const serverless = require('serverless-http')
7171
const json = require('serverless-json-parser')
72+
const restana = require('restana')
7273

73-
const service = require('restana')()
74+
const service = restana()
7475
service.use(json())
7576

7677
// routes

0 commit comments

Comments
 (0)