add a middleware concept
Closed this issue · 1 comments
brianleroux commented
async function one (req) {
req.one = true
}
async function two (req) {
req.two = req.one + true
}
async function three (req) {
return { json: { v: req.two } } // returns {"v":2}
}
export let get = [one, two, three]
brianleroux commented
fixed in 1.0.38