node-ci / nci-express

express plugin for nci https://github.com/node-ci/nci

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nci-express

Build Status

express plugin for nci to simplify http related plugins development

Installation

npm install nci-express

Usage

Add this plugin to the plugins section at server config before any plugin that using it.

plugins:
    - nci-express
    - nci-plugin-with-express

Add this plugin to peerDependencies at your plugin package.json

Just use app.express as express instance

exports.register = function(app) {
	app.express.get('/some/route', function(req, res) {
		res.json({ok: true})
	});
};

Look at nci-shields as example.

License

The MIT License

About

express plugin for nci https://github.com/node-ci/nci

License:MIT License


Languages

Language:JavaScript 100.0%