{"size": 694, "ext": "js", "max_stars_repo_path": "src/router/router.js", "max_stars_repo_name": "JZumun/nonochill-v2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/router/router.js", "max_issues_repo_name": "JZumun/nonochill-v2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/router/router.js", "max_forks_repo_name": "JZumun/nonochill-v2", "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": 26.6923076923, "max_line_length": 65, "alphanum_fraction": 0.6873198847}
import Vue from "vue";
import VueRouter from "vue-router";

import TitleScreen from "components/routes/TitleScreen.vue";
import Game from "components/routes/Game.vue";
import Editor from "components/routes/Editor.vue";
import NotFound from "components/routes/NotFound.vue";

Vue.use(VueRouter);

const routes = [
	{ path: "/", component: TitleScreen },
	{ path: "/game", component: Game },
	{ path: "/game/saved", component: Game, props: { saved: true }},
	{ path: "/game/:id", component: Game, props: true },
	{ path: "/editor", component: Editor },
	{ path: "*", component: NotFound }
];

const router = new VueRouter({
	routes,
	base: process.env.BASE_URL || "/"
});

export default router;
