mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-11 11:18:06 +00:00
18 lines
356 B
TypeScript
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: () => () => ({}),
|
|
}),
|
|
},
|
|
]
|
|
},
|
|
}
|