From 64c80504b5d14a179508bd764e107741a80e8be6 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Mon, 12 Aug 2019 11:37:07 +0200 Subject: Add router --- src/router/index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/router/index.js (limited to 'src/router/index.js') diff --git a/src/router/index.js b/src/router/index.js new file mode 100644 index 0000000..8322173 --- /dev/null +++ b/src/router/index.js @@ -0,0 +1,18 @@ +import VueRouter from "vue-router"; + +import HomeView from "../views/HomeView"; +import GalleryView from "../views/GalleryView"; +import DownloadView from "../views/DownloadView"; +import PageNotFoundView from "../views/PageNotFoundView"; + +const routes = [ + { path: "/", component: HomeView }, + { path: "/gallery", component: GalleryView }, + { path: "/download", component: DownloadView }, + { path: "*", component: PageNotFoundView } +]; + +export const router = new VueRouter({ + mode: "history", + routes +}); -- cgit 1.4.1