In my NUXT project I created all my routes in a separate script and use it as a module in nuxt.config.
The routes are created in that form:
{ path: `/r