enhance-dev/arc-plugin-enhance

add a middleware concept

Closed this issue · 1 comments

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]

fixed in 1.0.38