Skip to content

Instantly share code, notes, and snippets.

@molekilla
Created August 7, 2014 21:07
var debug = require('debug')('users');
var listHandler = require('./v1/list.js');
exports.register = function(plugin, options, next) {
plugin.route({
method: 'GET',
path: '/v1/users',
handler: listHandler
});
next();
};
exports.register.attributes = {
pkg: require('./package.json')
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment