Nuxt/test/runtime/app/router.options.ts

18 lines
356 B
TypeScript

import type { RouterOptions } from 'nuxt/schema'
import { defineComponent } from 'vue'
export default <RouterOptions> {
routes (_routes) {
return [
{
name: 'catchall',
path: '/:catchAll(.*)*',
component: defineComponent({
name: 'catchall',
setup: () => () => ({}),
}),
},
]
},
}