{"size": 699, "ext": "js", "max_stars_repo_path": "resources/assets/js/router/router.js", "max_stars_repo_name": "AlexSegen/laravel-vue", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/assets/js/router/router.js", "max_issues_repo_name": "AlexSegen/laravel-vue", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/assets/js/router/router.js", "max_forks_repo_name": "AlexSegen/laravel-vue", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.9230769231, "max_line_length": 45, "alphanum_fraction": 0.4806866953}
import Vue from 'vue'
import Router from 'vue-router'


import Home from '../pages/home/Home'
import TodoList from '../pages/todo/TodoList'
import Users from '../pages/users/Users'
import UserId from '../pages/users/_Id'




Vue.use(Router)

let router = new Router({
    routes:[
        {
            path:'/',
            name:'home',
            component: Home
        },
        {
            path:'/todo',
            name:'todoList',
            component: TodoList
        },
        {
            path:'/users',
            name:'users',
            component: Users
        },
        {
            path:'/user/:id',
            component: UserId
        }
    ]
})

export default router