import {createRouter, createWebHistory} from 'vue-router'
import Home from '@/views/Home'
import Details from "@/views/Details";

const routes = [
	{
		path: '/',
		name: 'Home',
		component: Home
	},
	{
		path: '/services/:key',
		name: 'Details',
		component: Details,
	},
]

const router = createRouter({
	history: createWebHistory(process.env.BASE_URL),
	routes
})

export default router
