0.1.4 • Published 3 years ago

nanium-channel-express v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

nanium-channel-express

A nanium request channel based on express using a single endpoint.

Install

npm install nanium-channel-express

Usage

import { Nanium } from 'nanium/core';
import { NaniumExpressHttpChannel } from 'nanium-channel-express';
import * as express from 'express';

const expressApp: express.Express = express();

await Nanium.addManager(new NaniumNodejsProvider({
	requestChannels: [
		new NaniumExpressHttpChannel({
			apiPath: '/api',
			server: expressApp
		})
	]
}));

This creates a single endpoint '/api' where requests can send via HTTP POST.

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago