Skip to content

Commit 7ee357d

Browse files
committed
add names to routes
1 parent 640d15b commit 7ee357d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/src/router/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,34 +103,39 @@ const routes = [
103103
},
104104
{
105105
path: '/browse',
106-
name: Browse,
106+
name: 'Browse',
107107
component: Browse,
108108
beforeEnter: notLoggedInRedirectLogin,
109109
props: true,
110110
},
111111
{
112112
path: '/search',
113113
component: Search,
114+
name: 'Search',
114115
beforeEnter: notLoggedInRedirectLogin,
115116
},
116117
{
117118
path: '/settings',
118119
component: Settings,
120+
name: 'Settings',
119121
beforeEnter: notLoggedInRedirectLogin,
120122
},
121123
{
122124
path: '/users/:id',
123125
component: User,
126+
name: 'Users',
124127
beforeEnter: notLoggedInRedirectLogin,
125128
},
126129
{
127130
path: '/history',
128131
component: History,
132+
name: 'History',
129133
beforeEnter: notLoggedInRedirectLogin,
130134
},
131135
{
132136
path: '/matches',
133137
component: Matches,
138+
name: 'Matches',
134139
beforeEnter: notLoggedInRedirectLogin,
135140
},
136141
{

0 commit comments

Comments
 (0)