import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/chat'
  },
  {
    path: '/chat',
    name: 'Chat',
    component: () => import('@/views/Chat.vue')
  },
  {
    path: '/hazard',
    name: 'Hazard',
    component: () => import('@/views/HazardDetection.vue')
  },
  {
    path: '/exam',
    name: 'Exam',
    component: () => import('@/views/Exam.vue')
  },
  {
    path: '/knowledge',
    name: 'Knowledge',
    component: () => import('@/views/Knowledge.vue')
  },
  {
    path: '/tips-report',
    name: 'TipsReport',
    component: () => import('@/views/tips_report.vue')
  }
]

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

export default router
