Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/assets/vue/router/course.js

29 lines
690 B

export default {
path: '/resources/courses',
meta: { requiresAuth: true },
name: 'courses',
component: () => import('../components/course/Layout.vue'),
redirect: { name: 'CourseList' },
children: [
{
name: 'CourseList',
path: '',
component: () => import('../views/course/List.vue')
},
{
name: 'CourseCreate',
path: 'new',
component: () => import('../views/course/Create.vue')
},
{
name: 'CourseUpdate',
path: ':id/edit',
component: () => import('../views/course/Update.vue')
},
{
name: 'CourseShow',
path: ':id',
component: () => import('../views/course/Show.vue')
}
]
};