UNPKG

hapi-routify

Version:

Just some lines of code to let you declare hapi routes from a manifest.json

13 lines (10 loc) 213 B
const register = (server, options) => { options.routes = options.routes || []; server.route(options.routes); }; exports.plugin = { name: 'hapi-routify', version: '0.0.1', register, multiple: true };