mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
refactoring part 3
This commit is contained in:
66
resources/js/routes/routesFile.js
vendored
Normal file
66
resources/js/routes/routesFile.js
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
const routesFile = [
|
||||
{
|
||||
name: 'Platform',
|
||||
path: '/platform',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/platform" */ '../views/Platform'),
|
||||
children: [
|
||||
{
|
||||
name: 'Files',
|
||||
path: '/platform/files/:id?',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/files" */ '../views/FileView/Files'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'RecentUploads',
|
||||
path: '/platform/recent-uploads',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/recent-uploads" */ '../views/FileView/RecentUploads'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'MySharedItems',
|
||||
path: '/platform/my-shared-items',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/my-shared-items" */ '../views/FileView/MySharedItems'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Trash',
|
||||
path: '/platform/trash/:id?',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/trash" */ '../views/FileView/Trash'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'TeamFolders',
|
||||
path: '/platform/team-folder/:id?',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/team-folders" */ '../views/FileView/Trash'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'SharedWithMe',
|
||||
path: '/platform/shared-with-me/:id?',
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "chunks/shared-with-me" */ '../views/FileView/Trash'),
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
export default routesFile
|
||||
Reference in New Issue
Block a user