DKX/Http/Middleware/Mount
Mount middleware for @dkx/http-server.
Installation
$ npm install --save @dkx/http-middleware-mount
or with yarn
$ yarn add @dkx/http-middleware-mount
Usage
const {Server} = require('@dkx/http-server');
const {mountMiddleware} = require('@dkx/http-middleware-mount');
const app = new Server;
const appA = new Server;
const appB = new Server;
app.use(mountMiddleware('/a', appA));
app.use(mountMiddleware('/b', appB));