import { createRouter, createWebHistory } from 'vue-router' const addOrEditPlaylistPage = () => import('@/Pages/AddOrEditPlaylist.vue') const routes = [ { path: '/', alias: '/home', name: 'home', component: () => import('@/Pages/Home.vue') }, { path: '/shows', name: 'shows', component: () => import('@/Pages/ShowManager.vue') }, { path: '/files', name: 'files', component: () => import('@/Pages/FileManager.vue') }, { path: '/calendar', name: 'emissions', component: () => import('@/Pages/EmissionManager.vue') }, { path: '/help', name: 'help', component: () => import('@/Pages/Help.vue') }, { path: '/settings', name: 'settings', component: () => import('@/Pages/Settings.vue') }, { path: '/credits', name: 'credits', component: () => import('@/Pages/Credits.vue') }, { path: '/playlist/new', name: 'addPlaylist', component: addOrEditPlaylistPage, props: { id: false }, }, { path: '/playlist/:id', name: 'editPlaylist', component: addOrEditPlaylistPage, props: true }, ] export default createRouter({ history: createWebHistory(), routes, })