question: @Get path with literal and variable
gayanhewa opened this issue · 3 comments
gayanhewa commented
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')
...
attilaorosz commented
Order them from most specific to least specific. So details first, id last.
gayanhewa commented
Order them from most specific to least specific. So details first, id last.
This worked 👍🏼
github-actions commented
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.