import { createRouter, createWebHashHistory } from 'vue-router'
import Scene from '../views/scene'
import Map from '../views/map'
import Home from '../views/home'

import browser from '@/utils/browser'


const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/map/:id',
    name: 'map',
    component: Map
  },
  {
    path: '/scene/:id',
    name: 'scene',
    component: Scene
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
