From 418563d70d87af904a49ba878642b921e15ea2cb Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Fri, 21 Sep 2018 10:13:53 +0100 Subject: [PATCH] Added route for stats. --- frontend/src/router.js | 6 ++++++ frontend/src/views/Stats.vue | 1 + 2 files changed, 7 insertions(+) diff --git a/frontend/src/router.js b/frontend/src/router.js index 67906f0..fc3f801 100644 --- a/frontend/src/router.js +++ b/frontend/src/router.js @@ -2,6 +2,7 @@ import Vue from "vue"; import Router from "vue-router"; import Home from "./views/Home.vue"; import Observation from "./views/Observation.vue"; +import Stats from "./views/Stats.vue"; Vue.use(Router); @@ -16,6 +17,11 @@ export default new Router({ path: "/observation", name: "observation", component: Observation + }, + { + path: "/stats", + name: "stats", + component: Stats } ] }); diff --git a/frontend/src/views/Stats.vue b/frontend/src/views/Stats.vue index 87baf84..1bbae9d 100644 --- a/frontend/src/views/Stats.vue +++ b/frontend/src/views/Stats.vue @@ -6,6 +6,7 @@ import Vue from "vue"; import StatsView from "../components/StatsView"; export default { + name: "stats", components: { StatsView }, data() { chartData: null;