diff --git a/src/router/index.ts b/src/router/index.ts index 0e62bc576caac40d61fa021525b4f3a6620a59bb..6af6e030529c8076d89dc34c74df85394dfc0a8e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,11 +1,6 @@ // Import necessary dependencies from Vue Router and your views import { createRouter, createWebHistory } from 'vue-router'; -import LoginView from '../views/Authentication/LoginView.vue'; import { useUserInfoStore } from '@/stores/UserStore'; -import UserProfileView from "@/views/User/UserProfileView.vue"; -import UpdateUserView from "@/views/UpdateUser/UpdateUserView.vue"; -import RedirectView from '@/views/RedirectView.vue'; - const routes = [ { path: '/', @@ -31,12 +26,7 @@ const routes = [ { path: 'profile', name: 'profile', - component: UserProfileView - }, - { - path: 'update-user', - name: 'update-user', - component: UpdateUserView + component: () => import('@/views/User/UserProfileView.vue'), }, { path: '/settings', @@ -107,11 +97,6 @@ const routes = [ name: 'friends', component: () => import('@/views/User/UserFriendsView.vue'), }, - { - path: 'add-friend', - name: 'add-friend', - component: () => import('@/views/User/UserAddFriend.vue'), - }, { path: 'unauthorized', name: 'unauthorized', @@ -127,7 +112,7 @@ const routes = [ { path: '/login', name: 'login', - component: LoginView, + component: () => import('@/views/Authentication/LoginView.vue'), }, { path: '/forgotten-password', @@ -147,18 +132,13 @@ const routes = [ { path: '/redirect', name: 'redirect', - component: () => RedirectView, + component: () => import('@/views/RedirectView.vue'), }, { path: '/configuration', name: 'configuration', component: () => import('@/views/ConfigurationView.vue'), children: [ - { - path: '/bank-id', - name: 'bankId', - component: () => import('@/components/Configuration/ConfigurationSteps/BankId.vue'), - }, { path: '/commitment', name: 'commitment',