An open API service indexing awesome lists of open source software.

https://github.com/makeomatic/ms-users-restify

Restify adapter for ms-users
https://github.com/makeomatic/ms-users-restify

Last synced: 5 months ago
JSON representation

Restify adapter for ms-users

Awesome Lists containing this project

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

```js
// 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);
```