mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
94 lines
2.1 KiB
JavaScript
Executable File
94 lines
2.1 KiB
JavaScript
Executable File
import DashboardLayout from '@/views/Layout/DashboardLayout.vue'
|
|
import AuthLayoutGDD from '@/views/Layout/AuthLayout_gdd.vue'
|
|
import AuthLayout from '@/views/Layout/AuthLayout.vue'
|
|
|
|
import NotFound from '@/views/NotFoundPage.vue'
|
|
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
redirect: 'login',
|
|
component: AuthLayoutGDD,
|
|
children: [
|
|
{
|
|
path: '/login',
|
|
name: 'login',
|
|
component: () => import('../views/Pages/Login.vue')
|
|
},
|
|
{
|
|
path: '/thx',
|
|
name: 'Thanks',
|
|
component: () => import('../views/Pages/thx.vue')
|
|
},
|
|
{
|
|
path: '/register',
|
|
name: 'register',
|
|
component: () => import('../views/Pages/Register.vue')
|
|
},
|
|
{
|
|
path: '/password',
|
|
name: 'password',
|
|
component: () => import('../views/Pages/Password.vue')
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/',
|
|
redirect: 'KontoOverview',
|
|
component: DashboardLayout,
|
|
children: [
|
|
{
|
|
path: '/KontoOverview',
|
|
name: 'Kontoübersicht',
|
|
component: () => import('../views/KontoOverview.vue'),
|
|
meta: {
|
|
requiresAuth: true
|
|
}
|
|
},
|
|
{
|
|
path: '/profile',
|
|
name: 'profile',
|
|
component: () => import('../views/Pages/UserProfileCard.vue')
|
|
},
|
|
{
|
|
path: '/profileedit',
|
|
name: 'profileedit',
|
|
component: () => import('../views/Pages/UserProfileEdit.vue')
|
|
},
|
|
{
|
|
path: '/activity',
|
|
name: 'activity',
|
|
component: () => import('../views/Pages/UserProfileActivity.vue')
|
|
}
|
|
]
|
|
},
|
|
,
|
|
{
|
|
path: '/',
|
|
redirect: 'AdminOverview',
|
|
component: AuthLayout,
|
|
children: [
|
|
{
|
|
path: '/AdminOverview',
|
|
name: 'Adminübersicht',
|
|
component: () => import('../views/AdminOverview.vue'),
|
|
meta: {
|
|
requiresAuth: true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/',
|
|
redirect: 'login',
|
|
component: AuthLayout,
|
|
children: [
|
|
|
|
{ path: '*', component: NotFound }
|
|
]
|
|
}
|
|
];
|
|
|
|
export default routes;
|