api-provider-redis
v0.1.0
Published
API provider for building api-core based APIs consumable via Redis pub-sub.
Downloads
6
Readme
api-provider-redis
API provider for building api-core based APIs consumable via Redis pub-sub.
Installation
npm install api-provider-redis
Usage
const express = require('express'),
RedisApiRouter = require('api-provider-redis').RedisApiRouter;
const API = new Api(...);
const app = express(),
router = new ExpressApiRouter(API);
router.apply(app);
app.listen(8080);