added router for redirect on home and add router for profile page

This commit is contained in:
Kostya
2023-11-25 22:28:25 +03:00
parent 9e281d111f
commit 5efe622a48
3 changed files with 16 additions and 2 deletions

View File

@@ -1,9 +1,12 @@
import { createRouter, createWebHistory } from "vue-router";
import HomePage from "../pages/HomePage.vue";
import ProfilePage from "@/pages/ProfilePage.vue";
export default createRouter({
history: createWebHistory(),
routes: [
{ path: '/', component: HomePage, name: 'home' }
{ path: '/', component: HomePage, name: 'home' },
{ path: '/', component: ProfilePage, name: 'profile' }
]
})