This commit is contained in:
Christian Cueni 2022-05-04 13:14:33 +02:00
parent 49c8148fd2
commit cc29f36230
1 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,5 @@
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue';
import learningPathRoutes from './learningpath.routes'
import {redirectToLoginIfRequired, updateLoggedIn} from '@/router/guards';
const loginUrl = '/sso/login/'
@ -13,7 +12,6 @@ const router = createRouter({
name: 'home',
component: HomeView,
meta: {
layout: 'NoNavbarDemoLayout',
public: true
}
},
@ -32,9 +30,12 @@ const router = createRouter({
component: () => import('../views/ProfileView.vue'),
},
{
path: '/learningpath',
component: () => import('../views/LearningPath.vue'),
children: learningPathRoutes
path: '/learningpath/:learningPathId',
component: () => import('../views/LearningPathOverview.vue'),
},
{
path: '/learningpath/:learningPathId/circle/:circleId',
component: () => import('../views/CircleView.vue'),
}
]
})