Reputation: 971
How can I implement the following routing structure:
pattern: /{category}
yet also have many other fixed patterns such as
pattern: /register
pattern: /login
pattern: /help
I know one way is to require regex for the category variable so that category is not equal to any of the fixed patterns. However, if I were to have 50+ different fixed patterns for the system, it would become a bit messy. Is there a clean and effective way to implement this routing structure?
I DO NOT want to compromise doing something like:
pattern: /something/{category}
Upvotes: 1
Views: 249
Reputation: 10126
Simply place
pattern: /{category}
in the end of the routing.yml
Upvotes: 4