Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:sitraka-hq/hapi-auto-route into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Cole Panike committed Dec 13, 2019
2 parents 8fdd122 + 109943c commit 8dc1ba9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

- Updates documentation.

### 3.0.2

- add dependency on @hapi/hoek

### 3.0.3

- Update documentation

### 3.0.4

- Fix unpublished version

### 3.1.0

- `routes_dir` accepts an array of parameters.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@ package.json
```javascript
// routes/home.js
'use strict';

module.exports = {
method: 'GET',
path: '/',
handler: (request, h) => 'Hello';
}
handler: (request, h) => 'Hello'
};
```

```javascript
// server.js
'use strict';

const Path = require('path');
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');

const server = Hapi.Server({
port: 3000,
Expand Down

0 comments on commit 8dc1ba9

Please sign in to comment.