typestack/routing-controllers

question: @Get path with literal and variable

gayanhewa opened this issue · 3 comments

How do you deal with named Get routes when you already have a route with a param in the same controller


@Get('/product/details')
....

@Get('/product/:id')
...

Order them from most specific to least specific. So details first, id last.

Order them from most specific to least specific. So details first, id last.

This worked 👍🏼

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.