Skip to content

Commit 7e35fe1

Browse files
committed
updated readme formats
1 parent fa16b38 commit 7e35fe1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ using with AWS S3 sign urls for private objects.
1313
npm i hapi-signed-url
1414
```
1515

16+
## Route Options
17+
18+
| Key | Type | Description |
19+
| ------------ | -------------------------------- | --------------------------------------------------------------------------- |
20+
| lenses | Lens<object, string>[] | Array of lenses, this should be `R.lensProp<string, string>(key)` |
21+
| pathToSource | Lens<object, object \| object[]> | Path to the nested object, this should be `R.lensPath(['somepath', '...'])` |
22+
1623
## Basic Usage
1724

1825
- Import the plugin
@@ -119,13 +126,6 @@ server.route({
119126
});
120127
```
121128

122-
## Route Options
123-
124-
| Key | Type | Description |
125-
| ------------ | -------------------------------- | --------------------------------------------------------------------------- |
126-
| lenses | Lens<object, string>[] | Array of lenses, this should be `R.lensProp<string, string>(key)` |
127-
| pathToSource | Lens<object, object \| object[]> | Path to the nested object, this should be `R.lensPath(['somepath', '...'])` |
128-
129129
The options for the Route config can also be array, the type is represented as
130130

131131
```ts

0 commit comments

Comments
 (0)