Add suport for enum params
OyvindSabo opened this issue · 0 comments
OyvindSabo commented
Instead of having to specify routes like this:
Router({
'/colors/red': 'Red',
'/colors/green': 'Green',
'/colors/blue': 'Blue',
})
Make it possible to specify routes like this:
Router({ '/colors/<color:red|green|blue>': getTitle })