Dynamic change in main.wasp routing.

Hi, I’ve a question about dynamically changing main.wasp. For example, when I create a new linktree page I should write the name that will be in the url. Like linktr.ee/canc -> /:canc? Is it possible to create dynamic route in main.wasp to work like this? If not, is there a thing i can do to handle this situation?
1 Reply
Vinny (@Wasp)
Vinny (@Wasp)3mo ago
yep. here in our tutorial you'll see how. I would suggest going through the whole thing, it only takes about 20 minutes and will answer most of your qustions https://wasp-lang.dev/docs/tutorial/pages#adding-a-second-page
3. Pages & Routes | Wasp
In the default main.wasp file created by wasp new, there is a page and a route declaration: