added path for saper and added sapergame page

This commit is contained in:
Kostya
2023-12-03 08:02:04 +03:00
parent 77c8f47f53
commit 61d435eda2
3 changed files with 32 additions and 2 deletions

View File

@@ -2,11 +2,13 @@ import { createRouter, createWebHistory } from "vue-router";
import HomePage from "../pages/HomePage.vue";
import ProfilePage from "@/pages/ProfilePage.vue";
import SapergamePage from "@/pages/games-pages/SapergamePage.vue";
export default createRouter({
history: createWebHistory(),
routes: [
{ path: '/', component: HomePage, name: 'home' },
{ path: '/profile', component: ProfilePage, name: 'profile' }
{ path: '/profile', component: ProfilePage, name: 'profile' },
{ path: '/game/saper', component: SapergamePage, name: 'saper' }
]
})