Skip to content
This repository was archived by the owner on May 28, 2024. It is now read-only.

Commit e331aec

Browse files
committed
Merge branch 'Crazyglue-fix/readme'
2 parents 2d9504d + 5b55dbf commit e331aec

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,17 @@ npm install @gar/hapi-json-api
2626
## Example of use
2727

2828
```javascript
29-
//where server is a hapi server
29+
// where server is a hapi server
3030

31+
// For hapi 17:
32+
await server.register({
33+
plugin: require('@gar/hapi-json-api'),
34+
options: {}
35+
});
36+
37+
// Prior to hapi 17:
3138
server.register({
32-
register: require('@gar/hapi-json-api')
39+
register: require('@gar/hapi-json-api'),
3340
options: {}
3441
});
3542
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gar/hapi-json-api",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"description": "Hapi plugin for enabling/enforcing JSONAPI specification",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)