Skip to content
Snippets Groups Projects
Commit 42de3aac authored by heikkkk's avatar heikkkk
Browse files

refactor: imports

parent 99b3f8f9
No related branches found
No related tags found
1 merge request!76Refactor/folder structure
// 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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment