text: import { createRouter, createWebHistory } from 'vue-router';
  import Home from '../views/Home.vue'
  
  const routes = [
      {
          path: '/',
          name: 'Home',
          component: Home
      },
      {
          path: '/detail/:country',
          name: 'Detail',
          params: true,
          component: () => import(/* webpackChunkName: "detail" */ '../views/Detail.vue')
      }
  ]
  
  const router = createRouter({
      history: createWebHistory(),
      routes
  })
  
  export default router