import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'About',
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/content',
      name: 'Content',
      component: () => import('../views/ContentView.vue'),
    },
    {
      path: '/article',
      name: 'ArticleDetail',
      component: () => import('../views/Details/ArticleDetail.vue'),
    },
    {
      path: '/video',
      name: 'VideoDetail',
      component: () => import('../views/Details/VideoDetail.vue'),
    },
  ],
})

export default router
