acquaint
v1.4.1
Published
Routes, Handlers, Methods, Binds (server.bind), and Apps (server.app) Autoloader
Downloads
22
Maintainers
Readme
acquaint
Hapi plugin to load routes
, handlers
, methods
, binds
(server.bind), and apps
(server.app) through globs.
All glob rules apply.
- Supports glob patterns for injecting.
- Supports direct injection through plugin register options.
- Access autoloaded methods on other methods with working
cache
andbind
. - Set default options such as
cache
andbind
on loadedmethods
capable for override or merge.
Head to the API documentation.
See it in action in this TodoMVC demo for hapi.
Credits
- hapi-router - Auto route loading for Hapi
- hapi-handlers - Autoload handlers for Hapi
- hapi-methods-injection - Scan and register automatically your hapi methods