import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login.vue'
import ServerStatus from '@/components/ServerStatus.vue'
import Configuration from '@/components/Configuration.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/status',
      name: 'ServerStatus',
      component: ServerStatus
    },
    {
      path: '/config',
      name: 'Configuration',
      component: Configuration
    },
    {
      path: '/',
      redirect: '/login'
    }
  ]
})
