mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-11 19:28:05 +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: () => () => ({}),
|
||
|
}),
|
||
|
},
|
||
|
]
|
||
|
},
|
||
|
}
|