How do I create a dynamic route in the studio?

Hello everyone can I assign such a route in the studio? I need to do this for the product page and the category page…how can I do this in the studio? or is it done in the code?

You should be able to set a route of /product/[slug]

But the slug itself will only be given meaning from your code

OK thanks!