/rutha-stack-api-versioning.js Secret
Created
August 7, 2014 21:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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