0.0.4 • Published 10 years ago

co-hapi-models v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

co-hapi-models

Build Dependencies

This is hapi plugins which adds collections models to each request. Use server method server.methods.models.register(name, model) to add model to such collection. Use yield server.methods.models.get() or yield server.methods.models.get("modelName") to get all models or specified by name. Also you can get all models as server.plugins["co-hapi-models"].models.

You can use request.models from request handlers.

Dependencies

Module co-hapi is required to use this plugin. Node 0.11+ should be used with --harmony switch.

0.0.4

10 years ago

0.0.3

10 years ago