Skip to content

bpcloud/middleware-koa-bodyparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa bodyparser middleware in bpframework.

Middleware specification

https://github.com/bpcloud/middleware

usage

Setup.

import { Application } from 'bpframework';
import * as middleware_bodyparser from '@bpframework/middleware-koa-bodyparser';

// bodyparser middleware is used by default.
Application.use(middleware_bodyparser.middleware({
  onErrorBodyParser: (err:any, ctx:koa.Context)=>{
    ctx.response.status = 415;
  }
}));
Application.runKoa(...);

About

bodyparser middleware of bpframework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published