import Vue from 'vue'
import Router from 'vue-router'
import Routes from '~/router/routes'

Vue.use(Router)

export function createRouter() {
  return new Router({
    mode: 'history',
    routes: Routes
  })
}
