ms-users-restify
v1.5.0
Published
Core of the microservice for handling users
Downloads
6
Readme
Restify transport adapter for ms-users
Install
npm i ms-users-restify -S
Usage
Family must be set to users
, this is a limitation of this module for now
// server - restify server instance
const users = require('ms-users-restify');
const family = 'users';
const prefix = '/api';
// update configuration singleton
users.config({ prefix: 'niceusers', postfix: {
register: 'oh-not-so-fast'
}});
// attaches handlers
users.attach(server, family, prefix);