From e392f8aa1a5cac6ae983c743dee87971b12a7a2e Mon Sep 17 00:00:00 2001 From: Cretu Eusebiu Date: Mon, 22 Jan 2018 22:14:55 +0200 Subject: [PATCH] Group routes with middleware --- resources/assets/js/pages/auth/login.vue | 1 - .../assets/js/pages/auth/password/email.vue | 2 - .../assets/js/pages/auth/password/reset.vue | 2 - resources/assets/js/pages/auth/register.vue | 1 - resources/assets/js/pages/home.vue | 2 +- resources/assets/js/pages/settings/index.vue | 4 -- resources/assets/js/router/index.js | 66 +++++++++++++------ resources/assets/js/router/routes.js | 45 +++++++++---- 8 files changed, 81 insertions(+), 42 deletions(-) diff --git a/resources/assets/js/pages/auth/login.vue b/resources/assets/js/pages/auth/login.vue index bdeb20f6e..4c3c1f9b2 100644 --- a/resources/assets/js/pages/auth/login.vue +++ b/resources/assets/js/pages/auth/login.vue @@ -61,7 +61,6 @@ import Form from 'vform' import LoginWithGithub from '~/components/LoginWithGithub' export default { - middleware: 'guest', components: { LoginWithGithub }, diff --git a/resources/assets/js/pages/auth/password/email.vue b/resources/assets/js/pages/auth/password/email.vue index f20db3b6e..dda926c6e 100644 --- a/resources/assets/js/pages/auth/password/email.vue +++ b/resources/assets/js/pages/auth/password/email.vue @@ -35,8 +35,6 @@ import Form from 'vform' export default { - middleware: 'guest', - metaInfo () { return { title: this.$t('reset_password') } }, diff --git a/resources/assets/js/pages/auth/password/reset.vue b/resources/assets/js/pages/auth/password/reset.vue index b7bcbee1a..f2ab7e0e0 100644 --- a/resources/assets/js/pages/auth/password/reset.vue +++ b/resources/assets/js/pages/auth/password/reset.vue @@ -55,8 +55,6 @@ import Form from 'vform' export default { - middleware: 'guest', - metaInfo () { return { title: this.$t('reset_password') } }, diff --git a/resources/assets/js/pages/auth/register.vue b/resources/assets/js/pages/auth/register.vue index dac4fc50b..e2297cffc 100644 --- a/resources/assets/js/pages/auth/register.vue +++ b/resources/assets/js/pages/auth/register.vue @@ -67,7 +67,6 @@ import Form from 'vform' import LoginWithGithub from '~/components/LoginWithGithub' export default { - middleware: 'guest', components: { LoginWithGithub }, diff --git a/resources/assets/js/pages/home.vue b/resources/assets/js/pages/home.vue index d0d25dc14..7188dd4fb 100644 --- a/resources/assets/js/pages/home.vue +++ b/resources/assets/js/pages/home.vue @@ -8,7 +8,7 @@