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
- Host: GitHub
- URL: https://github.com/makeomatic/ms-users-restify
- Owner: makeomatic
- License: mit
- Created: 2015-11-13T12:26:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-12-11T07:00:41.000Z (about 7 years ago)
- Last Synced: 2025-08-18T16:56:37.724Z (6 months ago)
- Language: JavaScript
- Size: 329 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```