{"size": 1319, "ext": "js", "max_stars_repo_path": "frontend/src/router.js", "max_stars_repo_name": "DrBlury/Shopkeeper", "max_stars_repo_stars_event_min_datetime": "2019-12-28T16:26:42.000Z", "max_stars_repo_stars_event_max_datetime": "2020-02-16T13:31:40.000Z", "max_issues_repo_path": "frontend/src/router.js", "max_issues_repo_name": "DrBlury/Shopkeeper", "max_issues_repo_issues_event_min_datetime": "2020-02-16T22:05:15.000Z", "max_issues_repo_issues_event_max_datetime": "2020-02-16T22:08:00.000Z", "max_forks_repo_path": "frontend/src/router.js", "max_forks_repo_name": "DrBlury/Shopkeeper", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 35.6486486486, "max_line_length": 129, "alphanum_fraction": 0.6376042456}
import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Dashboard from '@/components/Dashboard'
import NewCustomer from '@/components/NewCustomer'
import customerManagement from '@/components/customerManagement'
import productManagement from '@/components/productManagement'
import Cart from "@/components/Cart";

Vue.use(Router);

const router = new Router({
    mode: 'history', // uris without hashes #, see https://router.vuejs.org/guide/essentials/history-mode.html#html5-history-mode
    routes: [
        { path: '/', component: Dashboard },
        { path: '/cart', component: Cart },
        { path: '/login', component: Login },
        { path: '/newCustomer', component: NewCustomer },
        { path: '/customerManagement', component: customerManagement },
        { path: '/productManagement', component: productManagement },
        { path: '/multipage',
            // a single route can define multiple named components
            // which will be rendered into <router-view>s with corresponding names.
            components: {
                default: Login,
                a: Dashboard,
            }
        },

        // otherwise redirect to home
        { path: '*', redirect: '/' }
    ]
});

//Check login... Possible here!

export default router;