feat(ui): FRO-34 Lobby (#21)
Started with Lobby Component Co-authored-by: LQ63 <lkhermann@web.de> Co-authored-by: Janis <janis-e@gmx.de> Reviewed-on: #21 Reviewed-by: Janis <janis-e@gmx.de> Co-authored-by: lq64 <lq@blackhole.local> Co-committed-by: lq64 <lq@blackhole.local>
This commit is contained in:
@@ -7,14 +7,14 @@ import defaultMenu from "../components/DefaultMenu.vue"
|
||||
import axios from "axios";
|
||||
import { useUserInfo } from "@/composables/useUserInfo";
|
||||
import rulesView from "../components/Rules.vue";
|
||||
|
||||
import Game from "@/views/Game.vue";
|
||||
const api = window?.__RUNTIME_CONFIG__?.API_URL;
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/mainmenu/',
|
||||
path: '/',
|
||||
component: MainMenuView,
|
||||
meta: { requiresAuth: true },
|
||||
children: [
|
||||
@@ -50,6 +50,12 @@ const router = createRouter({
|
||||
component: LoginView,
|
||||
meta: { requiresAuth: false }
|
||||
},
|
||||
{
|
||||
path: '/game',
|
||||
name: 'game',
|
||||
component: Game,
|
||||
meta: {requiresAuth: true }
|
||||
}
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user