Skip to content

Commit

Permalink
docs(README): fix link and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanfoster committed Dec 27, 2016
1 parent 69a3cfc commit 9175712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ using a custom [Bunyan instance](https://github.com/dylanfoster/parch/blob/maste
## Error handling and responses

Error handling is done using [restify-errors](https://github.com/restify/errors).
When using controller helpers (`findAll`, `findOne`, etc) errors are handle automatically
When using controller helpers (`findAll`, `findOne`, etc) errors are handled automatically
for you. Just catch your Promise with `next` and parch will handle the rest.

```javascript
Expand Down Expand Up @@ -325,7 +325,7 @@ Need to handle your own errors? `controller.errors` contains all of [restify-err

- **server** All options (*with the exception of `middlewares`*) are passed directly to [restify](http://restify.com/#creating-a-server)
- `log`: defaults to parch's [bunyan instance](https://github.com/dylanfoster/parch/blob/master/src/logger.js) but can be overridden
- `middlewares(Array)`: merged with parch's [default middlwares](https://github.com/dylanfoster/parch/blob/master/src/application.js#L21-L26)
- `middlewares(Array)`: merged with parch's [default middlwares](https://github.com/dylanfoster/parch/blob/master/src/application.js#L24-L31)
- **authentication**
- `secretKey(String)`: A secret string used to sign JWT tokens
- `unauthenticated(Array)`: an array of strings or regex patterns to skip authentication.
Expand Down

0 comments on commit 9175712

Please sign in to comment.