koa-boom
v0.0.4
Published
Using boom inside koa context
Downloads
62
Readme
koa-boom
Using boom inside koa context
$ npm install koa-boom --save
var koa = require ('koa');
var boom = require ('koa-boom');
var app = koa ();
app.use (function * (next) {
boom.badRequest(this, 'custom message');
});
app.listen (3000);
LICENSE
MIT