Nurturing Palpable Magnificence
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@dkx/http-middleware-mount

0.4.1 • Public • Published

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));

Keywords

none

Install

npm i @dkx/http-middleware-mount

DownloadsWeekly Downloads

0

Version

0.4.1

License

MIT

Unpacked Size

6.45 kB

Total Files

9

Last publish

Collaborators

  • avatar