Init
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user