{"size": 800, "ext": "js", "max_stars_repo_path": "src/router.js", "max_stars_repo_name": "Eroo36/vuejs-company-cards", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/router.js", "max_issues_repo_name": "Eroo36/vuejs-company-cards", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/router.js", "max_forks_repo_name": "Eroo36/vuejs-company-cards", "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": 23.5294117647, "max_line_length": 49, "alphanum_fraction": 0.50125}
import Vue from "vue";
import Router from "vue-router";
import Home from "./views/Home.vue";
import Companies from "./views/Companies.vue";
import AddCompany from "./views/AddCompany.vue";
import EditCompany from "./views/EditCompany.vue"
Vue.use(Router);

export default new Router({
    mode: "history",
    routes: [
        {
            path: "/",
            name: "home",
            component: Home,
        },
        {
            path: "/companies",
            name: "companies",
            component: Companies,
        },
        {
            path: "/add-company",
            name: "addCompany",
            component: AddCompany,
        },
        {
            path: "/edit-company/:_id",
            name: "editCompany",
            component: EditCompany,
        },
    ],
});
