mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 02:50:39 +00:00
vue routes refactoring
This commit is contained in:
Vendored
+40
@@ -0,0 +1,40 @@
|
||||
const routesIndex = [
|
||||
{
|
||||
name: 'Homepage',
|
||||
path: '/',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/homepage" */ '../views/Frontpage/Homepage'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'DynamicPage',
|
||||
path: '/page/:slug',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/dynamic-page" */ '../views/Frontpage/DynamicPage'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'ContactUs',
|
||||
path: '/contact-us',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/contact-us" */ '../views/Frontpage/ContactUs'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'NotFound',
|
||||
path: '/not-found',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/not-found-shared" */ '../views/NotFound'),
|
||||
meta: {
|
||||
requiresAuth: false
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
export default routesIndex
|
||||
Reference in New Issue
Block a user