Skip to content

fix: Breaking Change in 0.10.0, @koa/router and trailing slash #1113

Closed
@Aareksio

Description

@Aareksio

Description

routing-controllers registers all routes with trailing slashes (eg. /user/). Updated router do not automagically removes the trailing slash. Meaning accessing routes without trailing slash returns 404.

Related issue: koajs/router#79

Expected behavior

GET /user -> 200
GET /user/ -> 200 (as previously, or 404)

Actual behavior

GET /user -> 404
GET /user/ -> 200

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageIssues which needs to be reproduced to be verified report.type: fixIssues describing a broken feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions