Hello I want to match a route in NestJS like this:
@Controller('posts')
export class PostsController {
@Get(:id)
getPostById() {}
@Get(:slug)
getPostBySlug() {}
}
The problem is the request nevers hit the slug route, how can I configure the routes to make the id only match with numbers and the second only match with letters and dashes?
Thank you very much :)