diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-12 12:16:39 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-12 12:16:39 +0200 |
commit | a163ec2d7497acb51612669a83e31e37746c176f (patch) | |
tree | 6682612003c94dfc71227146079881a7ebde11e3 /src/router | |
parent | 64c80504b5d14a179508bd764e107741a80e8be6 (diff) | |
download | puszcza-a163ec2d7497acb51612669a83e31e37746c176f.tar.gz puszcza-a163ec2d7497acb51612669a83e31e37746c176f.zip |
Add NavBar
Diffstat (limited to 'src/router')
-rw-r--r-- | src/router/index.js | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/router/index.js b/src/router/index.js index 8322173..532747a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,14 +5,21 @@ 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 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: [...routes, { path: "*", component: PageNotFoundView }] }); |