koa-configuration
v0.0.1
Published
The koa middleware for nodecloud-config-client.
Downloads
9
Maintainers
Readme
koa-configuration
This middleware is used for mapping /config and /refresh for nodecloud-config-client.
Usage
import Koa from 'koa';
import KoaConfig from 'koa-configuration;
import ConfigClient from 'nodecloud-config-client';
const app = new Koa();
const client = new ConfigClient(/* ignire */);
app.use(KoaConfig(client));
API
KoaConfig(client)
- client The instance of nodecloud-config-client.