I have two kinds of routes, products and categories:
/clothes/men/t-shirts-c10
(c = category and 10 is the category id)
/clothes/men/t-shirts/pretty-tshirt-p55
(p = product and 55 is the product id)
How would I create these routes in Slim3?
I have tried $app->get('/{slug}-p{id}'...
which works as long as there’s only one slash in the URL.