cti-dealer-to-context-middleware
v1.0.2
Published
Simple middleware to embed userId and dealerId to the context
Downloads
16
Maintainers
Readme
cti-dealer-to-context-middleware
Simple middleware to embed userId and dealerId to the context
Usage
const dealerToContextMiddleware = require( 'cti-dealer-to-context-middleware' );
const requestContextMiddleware = require( 'cti-request-context-middleware' );
const restify = require( 'restify' );
const server = restify.createServer();
server.use( requestContextMiddleware );
server.use( dealerToContextMiddleware );