import { createRouter, createWebHistory } from 'vue-router'
import Dashboard from '@/views/Dashboard.vue'
import Login from '@/views/Login.vue'
import Agents from '@/views/Agents.vue'
import MCP from '@/views/MCP.vue'
import ModelAPIs from '@/views/ModelAPIs.vue'
import Database from '@/views/Database.vue'
import Knowledge from '@/views/Knowledge.vue'
import Settings from '@/views/Settings.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/dashboard',
      name: 'dashboard',
      component: Dashboard
    },
    {
      path: '/agents',
      name: 'agents',
      component: Agents
    },
    {
      path: '/mcp',
      name: 'mcp',
      component: MCP
    },
    {
      path: '/model-apis',
      name: 'model-apis',
      component: ModelAPIs
    },
    {
      path: '/database',
      name: 'database',
      component: Database
    },
    {
      path: '/knowledge',
      name: 'knowledge',
      component: Knowledge
    },
    {
      path: '/settings',
      name: 'settings',
      component: Settings
    }
  ]
})

export default router
