Support the new koa router package
See original GitHub issuekoa-router
package has been renamed to @koa/router
. However, using the latter fails with:
koa-router package was not found installed. Try to install it
The issue is, because routing-controllers
uses the old import:
https://github.com/Keyj1n/routing-controllers/blob/master/src/driver/koa/KoaDriver.ts#L394
I think this logic should be refactored to simply allow passing a custom koa-router
instance to routing-controllers
.
What do you think?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
koa-router - npm
Router middleware for koa. Maintained by Forward Email and Lad.. Latest version: 12.0.0, last published: 5 months ago.
Read more >ZijianHe/koa-router: Router middleware for koa. - GitHub
Express-style routing using app.get , app.put , app.post , etc. Named URL parameters. Named routes with URL generation. Responds to OPTIONS requests with ......
Read more >Koa JS Router Example using koa-router package
In this post, we will look at a basic Koa JS Router Example using the koa-router package. If you are totally new to...
Read more >@koa/router - npm Package Health Analysis | Snyk
Router middleware for koa. Maintained by Forward Email and Lad. For more information about how to use this package see README. Latest version...
Read more >Install koa-router with NPM
View koa-router source code on Github. ... koa-router package install ... The API has changed to match the new promise-based middleware signature of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Koa is being deprecated and will be removed.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.