Files
th-website/src/router/index.ts
2026-05-03 14:53:02 +02:00

18 lines
518 B
TypeScript

import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import ExperienceView from '../views/ExperienceView.vue'
const routes: RouteRecordRaw[] = [
{ path: '/', component: HomeView },
{ path: '/recommSpotify',
component: ExperienceView,
props: { modelUrl: '/models/door_room_firstVersion_materials-draco.glb', dracoPath: '/draco/' } }
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router