Skip to content

Commit 31f25ad

Browse files
remove comments and add home to protected routes
1 parent e70f966 commit 31f25ad

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

generator/templates/Default/src/router.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ export default new Router({
77
mode: 'history',
88
base: process.env.BASE_URL,
99
routes: [
10-
{
11-
path: '/',
12-
name: 'home',
13-
component: () => import('@/views/Home'),
14-
},
15-
// <%_ if (options.useAuthorisation) { _%>
10+
<%_ if (options.useAuthorisation) { _%>
1611
{
1712
path: '',
1813
component: () => import('@/templates/Authorisation'),
@@ -39,26 +34,31 @@ export default new Router({
3934
},
4035
]
4136
},
42-
// <%_ } _%>
37+
<%_ } _%>
4338
{
4439
path: '',
4540
beforeEnter: AuthorisationGuard,
4641
component: () => import('@/templates/Default'),
4742
children: [
48-
// <%_ if (options.useAuthorisation) { _%>
43+
{
44+
path: '/',
45+
name: 'home',
46+
component: () => import('@/views/Home'),
47+
},
48+
<%_ if (options.useAuthorisation) { _%>
4949
{
5050
path: '/profile',
5151
name: 'profile',
5252
component: () => import('./views/Profile.vue')
5353
},
54-
// <%_ } _%>
55-
// <%_ if (options.useCrud) { _%>
54+
<%_ } _%>
55+
<%_ if (options.useCrud) { _%>
5656
{
5757
path: '/users',
5858
name: 'users',
5959
component: () => import('./views/UserResource.vue')
6060
},
61-
// <%_ } _%>
61+
<%_ } _%>
6262
{
6363
path: '/404',
6464
name: '404',

0 commit comments

Comments
 (0)