0.1.4 • Published 2 years ago

nanium-channel-express v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago