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

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/views/HomeView.vue'),
    },
    {
      path: '/map',
      name: 'map',
      component: () => import('@/views/MapView.vue'),
    },
    {
      path: '/tree/:id',
      name: 'tree-detail',
      component: () => import('@/views/TreeDetailView.vue'),
    },
    {
      path: '/make-wish',
      name: 'make-wish',
      component: () => import('@/views/MakeWishView.vue'),
    },
    {
      path: '/my-wishes',
      name: 'my-wishes',
      component: () => import('@/views/MyWishesView.vue'),
    },
    {
      path: '/wish/:id',
      name: 'wish-detail',
      component: () => import('@/views/WishDetailView.vue'),
    },
    {
      path: '/user',
      name: 'user',
      component: () => import('@/views/UserView.vue'),
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/LoginView.vue'),
    },
  ],
})

export default router
