vue-route-generator
vue-route-generator copied to clipboard
Allow `path` to be merged into route config
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?
What is the use case for that?
@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