text: import { createRouter, createWebHistory } from 'vue-router';
  import Home from '../views/Home.vue';
  import InvoiceDetails from '../views/InvoiceDetails.vue';
  
  const routes = [
    {
      path: '/',
      name: 'Home',
      component: Home,
    },
    {
      path: '/invoice/:id',
      name: 'InvoiceDetails',
      component: InvoiceDetails,
    },
  ];
  
  const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes,
  });
  
  export default router;
  