Add beginning of Google Auth
This commit is contained in:
@@ -41,7 +41,6 @@ export default route(function (/* { store, ssrContext } */) {
|
||||
if (!auth.ready) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (auth.currentUser) {
|
||||
return to.meta.accountRoute ? { name: 'index' } : true;
|
||||
} else {
|
||||
|
||||
@@ -71,6 +71,22 @@ const routes: RouteRecordRaw[] = [
|
||||
publicRoute: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/terms-of-service',
|
||||
component: () => import('pages/TermsOfServicePage.vue'),
|
||||
name: 'tospage',
|
||||
meta: {
|
||||
publicRoute: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/privacy-policy',
|
||||
component: () => import('pages/PrivacyPolicyPage.vue'),
|
||||
name: 'privacy-policy',
|
||||
meta: {
|
||||
publicRoute: true,
|
||||
},
|
||||
},
|
||||
// {
|
||||
// path: '/register',
|
||||
// component: () => import('pages/RegisterPage.vue'),
|
||||
|
||||
Reference in New Issue
Block a user