franciscogouveia / hapi-rbac

RBAC (Rule Based Access Control) for hapijs
ISC License
105 stars 20 forks source link

Added onError to plugin config for custom response formats #32

Closed hazkiel closed 8 years ago

hazkiel commented 8 years ago

Hi, I'm using a custom response format in one of my projects and I thought I'd add that feature as a configurable option. Boom is nice, but sometimes we need to adhere by certain standards for the response format like the json api standard... this pull request makes it possible.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.1%) to 92.523% when pulling 79461d62b61c23f2f6b0f9a60f66786f65e3bfe8 on hazkiel:master into dc406056281faf18485074b910177e02b4e74e9f on franciscogouveia:master.

franciscogouveia commented 8 years ago

Merged. Will publish to npm later when I'm home.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.1%) to 92.523% when pulling e77a93f90c591afd866f98d4f5441947c2967d32 on hazkiel:master into dc406056281faf18485074b910177e02b4e74e9f on franciscogouveia:master.