router.js File Tree-based Routing

pages/products/
'-- _slug.vue

{
  name: 'products-slug',
  path: '/products/:slug?',
  component: 'pages/products/_slug.vue'
}