diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-12 11:37:07 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-12 11:37:07 +0200 |
commit | 64c80504b5d14a179508bd764e107741a80e8be6 (patch) | |
tree | 38bd3310d20656cf5acded01a24f32e4f42bed2a /src/router/index.js | |
parent | a76e153bf1390237ab75969f40df3abfe6da0a75 (diff) | |
download | puszcza-64c80504b5d14a179508bd764e107741a80e8be6.tar.gz puszcza-64c80504b5d14a179508bd764e107741a80e8be6.zip |
Add router
Diffstat (limited to 'src/router/index.js')
-rw-r--r-- | src/router/index.js | 18 |
1 files changed, 18 insertions, 0 deletions
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 +}); |