This commit is contained in:
2026-06-15 00:07:19 +02:00
parent eb2652f7e9
commit 4466b6c1ca
14 changed files with 213 additions and 56 deletions
+16
View File
@@ -10,6 +10,7 @@ import Index from '@/pages/index.vue'
import {useAuthStore} from '@/stores/auth'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
@@ -27,6 +28,21 @@ const router = createRouter({
path: '/',
component: Index,
},
{
// Cette regex capture soit un UUID, soit le mot "default"
path: '/server/:id(default|[0-9a-fA-F-]{36})',
name: 'server-dashboard',
component: () => import('@/pages/server/index.vue'),
props: true,
children: [
{
path: 'channel/:channelId',
name: 'server-channel',
component: () => import('@/pages/server/channel/index.vue'),
props: true,
},
],
},
{
path: '/admin',
name: 'admin-dashboard',