hapi-router-directory
v1.0.1
Published
hapi plugin to register routes present in a directory structure
Downloads
2
Readme
Usage -
var router = require('hapi-router-directory');
register routes by calling routes method, passing path for routes directory.
server.route(router.routes(__dirname + '/routes'));
This will register all routes, recursively finding in the sub-directories as well.