Skip to content

Support the new koa router package #595

@feimosi

Description

@feimosi

koa-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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions