import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import QuestionView from '../views/QuestionView.vue'
import QuestionViewMobile from '../views/QuestionViewMobile.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'HomeView',
    component: HomeView,
    children: [
      {
        path: '/question-view',
        name: 'QuestionView',
        component: QuestionView,
      },
      {
        path: '/question-view-mobile',
        name: 'QuestionViewMobile',
        component: QuestionViewMobile,
      },
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
