@dkx/http-middleware-mount
TypeScript icon, indicating that this package has built-in type declarations

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

Readme

Keywords

none

Package Sidebar

Install

npm i @dkx/http-middleware-mount

Weekly Downloads

0

Version

0.4.1

License

MIT

Unpacked Size

6.45 kB

Total Files

9

Last publish

Collaborators

  • davidkcz