import { createRouter, createWebHistory } from 'vue-router'
import ChatView from '@/views/ChatView.vue'

const routes = [
  {
    path: '/',
    name: 'chat',
    component: ChatView
  },
  {
    path: '/knowledge',
    name: 'knowledge',
    component: () => import('@/views/KnowledgeView.vue')
  },
  {
    path: '/apps',
    name: 'apps',
    component: () => import('@/views/AppsView.vue')
  },
  {
    path: '/workflow',
    name: 'workflow',
    component: () => import('@/views/WorkflowView.vue')
  },
  {
    path: '/service',
    name: 'service',
    component: () => import('@/views/ServiceView.vue')
  },
  {
    path: '/bidding',
    name: 'bidding',
    component: () => import('@/views/BiddingView.vue')
  },
  {
    path: '/hazard',
    name: 'hazard',
    component: () => import('@/views/HazardView.vue')
  },
  {
    path: '/emergency',
    name: 'emergency',
    component: () => import('@/views/EmergencyView.vue')
  },
  {
    path: '/profile',
    name: 'profile',
    component: () => import('@/views/ProfileView.vue')
  },
  {
    path: '/admin',
    name: 'admin',
    component: () => import('@/views/AdminView.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
