Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

koa 中间件抽出来放另一个库里,比如 koa-spm #15

Open
sorrycc opened this issue Nov 21, 2014 · 3 comments
Open

koa 中间件抽出来放另一个库里,比如 koa-spm #15

sorrycc opened this issue Nov 21, 2014 · 3 comments

Comments

@sorrycc
Copy link
Member

sorrycc commented Nov 21, 2014

现在同一个逻辑在两套代码里都实现了一遍,改起来容易漏。

@popomore
Copy link
Member

popomore commented Dec 5, 2014

抽一個庫不還是兩套代碼麼

@sorrycc
Copy link
Member Author

sorrycc commented Dec 5, 2014

koa 的实现可以调 express 的中间件来做,比如 expressMiddleware.apply(this, opts)(req, res, next)

@popomore
Copy link
Member

popomore commented Dec 5, 2014

可以試下

@sorrycc sorrycc reopened this Jan 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants