koajs / koa-body

koa body parser middleware
MIT License
950 stars 130 forks source link

All type support via type-is #72

Open Thomas-X opened 7 years ago

Thomas-X commented 7 years ago

There should be an option to use any type you want instead of 3 dedicated types. In my case, I need to use application/vnd.api+json

resources: https://www.npmjs.com/package/type-is#readme

jannikkeye commented 7 years ago

@Thomas-X had the same problem. Koas official bodyparser supports the json-api type.