Files
schafkopf-bot/Frontend/src/main.ts
Valentin Heiserer 539e29dc56 Make fit for beta release (#51)
* removed

* edited a lot of stuff
2024-04-25 23:41:50 +00:00

25 lines
808 B
TypeScript

import {createApp} from 'vue'
import './style.css'
import App from './App.vue'
import {createRouter, createWebHistory} from "vue-router";
import {setupService} from "./services/DependencyInjection.ts";
const routes = [
{path: '/', component: () => import('./pages/MainMenu.vue'),},
{path: '/online', component: () => import('./pages/OnlineGameList.vue'),},
{path: '/gamesession', component: () => import('./pages/GameSession.vue'),},
{path: '/localgame', component: () => import('./pages/LocalGame.vue'),},
{path: '/dedicatedgame', component: () => import('./pages/DedicatedGame.vue'),},
]
const router = createRouter({
history: createWebHistory(),
routes,
})
setupService("ws://localhost:8080/schafkopf-events/");
const app = createApp(App)
app.use(router)
app.mount('#app')