Skip to content

Commit

Permalink
Merge pull request #6 from JordanHood/doc_update
Browse files Browse the repository at this point in the history
update hapi-swager to use root as path
  • Loading branch information
JordanHood committed Jul 21, 2017
2 parents 81fda44 + ad299a7 commit 6dcd6ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ On startup the app will create a users table and insert some users read from `sc
* Linting is run using [StandardJs](http://standardjs.com/) which can be run with `npm run lint`.

## Documentation
Once the server is running, the api is documented using swagger, which can be accessed by going to http://localhost:3500/documentation
Once the server is running, the api is documented using swagger, which can be accessed by going to http://localhost:3500/
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ server.register([
info: {
title: 'Test API Documentation',
version: pkg.version
}
},
documentationPath: '/'
}
}], (err) => {
if (err) return console.log(err)
Expand Down

0 comments on commit 6dcd6ae

Please sign in to comment.