diff options
| author | taehoon <th.dev91@gmail.com> | 2019-07-23 21:52:24 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-07-24 11:08:05 -0400 |
| commit | 8375d7a3aa198c77732beda535fe92b9ffbe4356 (patch) | |
| tree | 665727d3338d468434e7ee86a79a21df518cf04d /src/boot/routes.js | |
| parent | ad29e20324f8af519b60b2920a352096346230be (diff) | |
guard more secure routes
Diffstat (limited to 'src/boot/routes.js')
| -rw-r--r-- | src/boot/routes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/routes.js b/src/boot/routes.js index 3639fcbf..7dc4b2a5 100644 --- a/src/boot/routes.js +++ b/src/boot/routes.js @@ -49,12 +49,12 @@ export default (store) => { { name: 'registration-token', path: '/registration/:token', component: Registration }, { name: 'friend-requests', path: '/friend-requests', component: FollowRequests, beforeEnter: validateAuthenticatedRoute }, { name: 'user-settings', path: '/user-settings', component: UserSettings, beforeEnter: validateAuthenticatedRoute }, - { name: 'notifications', path: '/:username/notifications', component: Notifications }, + { name: 'notifications', path: '/:username/notifications', component: Notifications, beforeEnter: validateAuthenticatedRoute }, { name: 'login', path: '/login', component: AuthForm }, { name: 'chat', path: '/chat', component: ChatPanel, props: () => ({ floating: false }) }, { name: 'oauth-callback', path: '/oauth-callback', component: OAuthCallback, props: (route) => ({ code: route.query.code }) }, { name: 'search', path: '/search', component: Search, props: (route) => ({ query: route.query.query }) }, - { name: 'who-to-follow', path: '/who-to-follow', component: WhoToFollow }, + { name: 'who-to-follow', path: '/who-to-follow', component: WhoToFollow, beforeEnter: validateAuthenticatedRoute }, { name: 'about', path: '/about', component: About }, { name: 'user-profile', path: '/(users/)?:name', component: UserProfile } ] |
