0.0.3 • Published 12 years ago
hapi-datify v0.0.3
hapi-datify
your datify-friendly hapi plugin.
how
> npm install hapi-datify
use hapi-datify as a plugin for hapi. For example, if you use hapi cli tool (or composer), put it in your config file:
{
"hapi-datify": {
"routesToDatifyRegEx": "^/documents&"
}
}
The example above will datify only the /documents route, meaning, it will datify
request.payload
, request.query
.
why
see datify#why.
test
> npm install
> make test-cov