text: import {createRouter, createWebHistory} from 'vue-router'
  
  import Layout from '../layouts/Layout'
  
  const routes = [
      {
          path: '/',
          component: Layout,
          children: [
              {
                  path: '/',
                  name: 'Anasayfa',
                  component: () => import('../views/Dashboard'),
              },
              {
                  path: '/user/:id',
                  name: 'User Page',
                  component: () => import('../views/User'),
              },
          ]
      }
  ]
  
  const router = createRouter({
      base: appConfig.url.base.replace(window.location.origin, ''),
      history: createWebHistory(process.env.APP_URL),
      routes,
      mode: 'history',
  })
  export default router
  