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

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/domain',
    },
    {
      path: '/domain',
      name: 'domain-manager',
      component: () => import('../views/DomainManager.vue'),
    },
    {
      path: '/url',
      name: 'url-manager',
      component: () => import('../views/UrlManager.vue'),
    },
  ],
})

export default router
