-
Notifications
You must be signed in to change notification settings - Fork 5
Automatic routing on modules #14
Copy link
Copy link
Open
Description
One of the greatest features Nuxt has is folder based routing.
But with this module example, we need to register all routes manually:
nuxt.hook('pages:extend', (pages) => {
pages.push({
name: 'blog-page',
path: '/blog/:id',
file: resolve(__dirname, './pages/blog/[id].vue')
})
})is there a way to automatic create a route for every file inside the pages directory?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels