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

Commit 5b55dbf

Browse files
committed
Keep instructions for hapi < 17 as well
1 parent 1eb5187 commit 5b55dbf

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,19 @@ npm install @gar/hapi-json-api
2626
## Example of use
2727

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

31+
// For hapi 17:
3132
await server.register({
3233
plugin: require('@gar/hapi-json-api'),
3334
options: {}
3435
});
36+
37+
// Prior to hapi 17:
38+
server.register({
39+
register: require('@gar/hapi-json-api'),
40+
options: {}
41+
});
3542
```
3643

3744
### Configuration

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)