refactor(path): removed old route builder

This commit is contained in:
Corentin Thomasset 2021-05-29 13:49:43 +02:00
parent 01091f083c
commit 6c60f92245
No known key found for this signature in database
GPG key ID: DBD997E935996158

View file

@ -100,18 +100,5 @@ export default {
// Build Configuration (https://go.nuxtjs.dev/config-build)
build: {},
router: {
extendRoutes(routes) {
routes.forEach((route) => {
if (route.path.match(/^\/tools\/.*/)) {
const sections = route.path.split('/')
route.path = `/${sections[sections.length - 1]}`
route.meta = {
isTool: true,
section: sections[sections.length - 2]
}
}
})
}
}
router: {}
}