Skip to content

Can we create multiple paths for the same controller function? #1345

@crossdsection

Description

@crossdsection

I was trying to...

@Get(`/api/v1/getdetails`)
@Get(`/api/v2/details`)
 public async getDetail(

The problem:
We are trying to rename the bad API paths, without removing the old one. Is that possible, using the routing-controller package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionQuestions about the usage of the library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions