2017-07-31 11:33:31 +05:30

11 lines
143 B
JavaScript

'use strict'
module.exports = answer
function answer () {
return async (ctx, next) => {
ctx.set('X-Answer', 42)
await next()
}
}