import { createRouter, createWebHistory } from 'vue-router' const routes = [ { path: '/', redirect: '/agent/agent-creator' }, { path: '/agents/:agentId?', redirect: to => `/agent/${to.params.agentId || 'agent-creator'}`, }, { path: '/agent/:agentId/:convId?', name: 'AgentChat', component: () => import('@/views/AgentChat.vue'), props: true, }, { path: '/company', name: 'CompanyDashboard', component: () => import('@/views/CompanyDashboard.vue'), }, { path: '/okr', name: 'OkrDashboard', component: () => import('@/views/OkrDashboard.vue'), }, ] const router = createRouter({ history: createWebHistory(), routes, }) export default router