Route array params?


#1

Is there a way to define an array in a route definition in any of the popular router packages (particularly Flow Router)?

For example, this URL would contain 3 “slugs” of a kind:

http://www.domain.com/things/thing1/thing2/thing3

And might be defined like so:

/:typePlural/:[things]

And then I’d get a params object like:

{
   typePlural: 'things',
   things: ['thing1', 'thing2', 'thing3']
}

Anything like that?