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

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/comics',
      name: 'comics',
      component: ComicsView,
    },
    {
      path: '/comic/artists',
      name: 'artists',
      component: () => import('@/views/ComicsView.vue')
    },
  ],
})

export default router
