diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-23 10:04:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-23 10:04:57 +0200 |
commit | 89837b8756590bd97b82450c6a445702f7ab5077 (patch) | |
tree | ca3d763976eab9d1541d68687e38c87bd11990ec /src/router/index.js | |
parent | a76e153bf1390237ab75969f40df3abfe6da0a75 (diff) | |
parent | 8dfa61884580a5966c0b48f5ce5dc16828f489c4 (diff) | |
download | puszcza-89837b8756590bd97b82450c6a445702f7ab5077.tar.gz puszcza-89837b8756590bd97b82450c6a445702f7ab5077.zip |
Merge pull request #1 from pniedzwiedzinski/develop
Add navigation and files
Diffstat (limited to 'src/router/index.js')
-rw-r--r-- | src/router/index.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/router/index.js b/src/router/index.js new file mode 100644 index 0000000..532747a --- /dev/null +++ b/src/router/index.js @@ -0,0 +1,25 @@ +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"; + +export const routes = [ + { path: "/", name: "Home", component: HomeView }, + { path: "/o-nas", name: "O nas" }, + { path: "/download", name: "Do pobrania", component: DownloadView } +]; + +export const externalRoutes = [ + { + path: "https://kronika-puszcza.netlify.com", + name: "Kronika" + }, + { path: "https://kronika-puszcza.netlify.com/galeria", name: "Galeria" } +]; + +export const router = new VueRouter({ + mode: "history", + routes: [...routes, { path: "*", component: PageNotFoundView }] +}); |