{"size": 1256, "ext": "js", "max_stars_repo_path": "resources/js/router.js", "max_stars_repo_name": "david0leong/lender-demo", "max_stars_repo_stars_event_min_datetime": "2022-02-12T06:23:26.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-12T06:23:26.000Z", "max_issues_repo_path": "resources/js/router.js", "max_issues_repo_name": "david0leong/lender-demo", "max_issues_repo_issues_event_min_datetime": "2021-02-02T19:22:21.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T06:04:08.000Z", "max_forks_repo_path": "resources/js/router.js", "max_forks_repo_name": "david0leong/lender-demo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 6, "max_forks_count": null, "avg_line_length": 18.2028985507, "max_line_length": 49, "alphanum_fraction": 0.6090764331}
import Vue from 'vue'
import VueRouter from 'vue-router'

import Teams from './views/Teams'
import TeamDetails from './views/TeamDetails'
import TeamAdd from './views/TeamAdd'
import TeamEdit from './views/TeamEdit'
import Players from './views/Players'
import PlayerDetails from './views/PlayerDetails'
import PlayerAdd from './views/PlayerAdd'
import PlayerEdit from './views/PlayerEdit'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    alias: '/home',
    redirect: { name: 'Teams' },
  },
  {
    path: '/teams',
    name: 'Teams',
    component: Teams,
  },
  {
    path: '/teams/new',
    name: 'TeamAdd',
    component: TeamAdd,
  },
  {
    path: '/teams/:id',
    name: 'TeamDetails',
    component: TeamDetails,
  },
  {
    path: '/teams/:id/edit',
    name: 'TeamEdit',
    component: TeamEdit,
  },
  {
    path: '/players',
    name: 'Players',
    component: Players,
  },
  {
    path: '/players/new',
    name: 'PlayerAdd',
    component: PlayerAdd,
  },
  {
    path: '/players/:id',
    name: 'PlayerDetails',
    component: PlayerDetails,
  },
  {
    path: '/players/:id/edit',
    name: 'PlayerEdit',
    component: PlayerEdit,
  },
]

const router = new VueRouter({
  mode: 'history',
  routes,
})

export default router
