import { createRouter, createWebHistory } from 'vue-router'
import Home from './views/Home.vue'
import TenantAgentes from './views/TenantAgentes.vue'
import AgenteDetail from './views/AgenteDetail.vue'

const router = createRouter({
  history: createWebHistory('/orchestrator/'),
  routes: [
    { path: '/', name: 'home', component: Home },
    { path: '/tenants/:id', name: 'tenant-agentes', component: TenantAgentes, props: true },
    {
      path: '/tenants/:tenantId/agentes/:agenteId',
      name: 'agente-detail',
      component: AgenteDetail,
      props: true,
    },
  ],
})

export default router
