import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory('/'),
//   history: createWebHistory(import.meta.env.VITE_APP_URL),
  routes: [
    {
		path: '/',
		redirect: "/workshop",
	},
	{
		path: '/workshop',
		name: 'Workshop',
		component: () => import('../views/Workshop/index.vue'),
		children: [
			// {
			// 	path: '',
			// 	name: 'activitiesWorkshop',
			// 	redirect: "/activities/workshop",	
			// },

			{
				path: '/workshop/selectStyle',
				name: 'SelectStyle',
				component: () => import('../views/Workshop/selectStyle.vue'),
			},
			{
				path: '/workshop/uploadFace',
				name: 'uploadFace',
				component: () => import('../views/Workshop/uploadFace/index.vue'),
			},
			{
				path: '/workshop/customize',
				name: 'customize',
				component: () => import('../views/Workshop/customize/index.vue'),
			},
		]
	},
  ]
})

export default router
