1111
This commit is contained in:
+7
-1
@@ -2,6 +2,9 @@ import { createRouter, createWebHistory } from 'vue-router'
|
||||
import AuthView from './views/AuthView.vue'
|
||||
import OnboardingView from './views/OnboardingView.vue'
|
||||
import DashboardView from './views/DashboardView.vue'
|
||||
import AssessmentView from './views/AssessmentView.vue'
|
||||
import ProfileView from './views/ProfileView.vue'
|
||||
import DeviceControlView from './views/DeviceControlView.vue'
|
||||
import { hasToken } from './services/auth'
|
||||
|
||||
const router = createRouter({
|
||||
@@ -10,7 +13,10 @@ const router = createRouter({
|
||||
{ path: '/', redirect: '/dashboard' },
|
||||
{ path: '/auth', component: AuthView, meta: { guest: true } },
|
||||
{ path: '/onboarding', component: OnboardingView },
|
||||
{ path: '/dashboard', component: DashboardView }
|
||||
{ path: '/dashboard', component: DashboardView },
|
||||
{ path: '/assessment', component: AssessmentView },
|
||||
{ path: '/profile', component: ProfileView },
|
||||
{ path: '/device-control', component: DeviceControlView }
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user