2.0.2 • Published 6 years ago

nci-express v2.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

2.0.2

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago