1.0.0 • Published 5 years ago

proton-body-parser v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

npm version

Express body-parser middleware for Protontype

This module wraps body-parser Nodejs module for use into a Protontype project

Middlewares

How to Use

let app = new ProtonApplication().addMiddlewareAs(JsonBodyParserMiddleware)
app.start();

With options:

let middlewareWithOptions = new JsonBodyParserMiddleware({ type: 'application/*+json' });
let app = new ProtonApplication().addMiddleware(middleware)
app.start();

For all options see:

For how to use middlewares into Protontype see documentation