import { createRouter, createWebHashHistory } from 'vue-router'
import App from '../App.vue'
import ApiConfig from '../components/ApiConfig.vue'
import NetworkError from '../components/network_error.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: App
  },
  {
    path: '/config',
    name: 'config',
    component: ApiConfig
  },
  {
    path: '/network_error',
    name: 'network_error',
    component: NetworkError
  }
]

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

export default router 