vue-route-generator icon indicating copy to clipboard operation
vue-route-generator copied to clipboard

Allow `path` to be merged into route config

Open yaquawa opened this issue 4 years ago • 2 comments

There is no way to specify a dynamic path with regular expression. I expect this will work, but it won't.

<route>
{
  path: "/:category(foo|bar|baz)"
}
</route>

can we merge the path as well?

yaquawa avatar May 12 '21 10:05 yaquawa

What is the use case for that?

ktsn avatar Jun 04 '21 07:06 ktsn

@ktsn There is no way to specify a dynamic path with regular expression, currently you have to modify the generated routes. https://next.router.vuejs.org/guide/essentials/route-matching-syntax.html#custom-regexp-in-params

yaquawa avatar Jun 04 '21 16:06 yaquawa