style: Fixed route.js

This commit is contained in:
scmmishra 2019-03-06 10:55:21 +05:30
parent 28dd4c139e
commit 18a1a8d4f4

View File

@ -9,20 +9,20 @@ const routes = [{
name: 'home',
path: '',
component: Home
},
{
},
{
name: 'program',
path: '/Program/:program_name',
component: ProgramPage,
props: true
},
{
},
{
name: 'course',
path: '/Program/:program_name/:course_name/',
component: CoursePage,
props: true,
},
{
},
{
name: 'content',
path: '/Program/:program_name/:course_name/:topic/:type/:content',
component: ContentPage,
@ -39,14 +39,14 @@ const routes = [{
})
}
}
},
{
},
{
name: 'list',
path: '/List/:master',
component: ListPage,
props: true
},
{
},
{
name: 'signup',
path: '/Signup',
beforeEnter(to, from, next) {
@ -54,8 +54,8 @@ const routes = [{
},
component: Home,
props: true
},
{
},
{
name: 'login',
path: '/Login',
beforeEnter(to, from, next) {
@ -63,8 +63,8 @@ const routes = [{
},
component: Home,
props: true
},
{
},
{
name: 'logout',
path: '/Logout',
beforeEnter(to, from, next) {
@ -72,8 +72,8 @@ const routes = [{
},
component: Home,
props: true
},
{
},
{
name: 'profile',
path: '/Profile',
component: ProfilePage,
@ -87,7 +87,6 @@ const routes = [{
next()
}
}
}
];
}];
export default routes;