Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Allow micro middleware/plugins. #83

Open
nahtnam opened this issue Jun 3, 2020 · 0 comments
Open

Allow micro middleware/plugins. #83

nahtnam opened this issue Jun 3, 2020 · 0 comments
Assignees
Labels
good first issue Good for newcomers
Milestone

Comments

@nahtnam
Copy link
Contributor

nahtnam commented Jun 3, 2020

We don't actually support micro middleware/functions.

Their syntax is

const mw = (fn) => async (req, res) => {
  return await fn(req, res);
}

whereas light's is

const mw = (fn) => async (ctx) => {
  return await fn(ctx);
}
@nahtnam nahtnam added this to the v2.0 milestone Jun 3, 2020
@nahtnam nahtnam added the good first issue Good for newcomers label Jun 3, 2020
@nahtnam nahtnam self-assigned this Jun 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant