OyvindSabo/sharp-router

Add suport for enum params

Opened this issue · 0 comments

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 })