about summary refs log tree commit diff
path: root/src/router/index.js
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-08-12 12:16:39 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-08-12 12:16:39 +0200
commita163ec2d7497acb51612669a83e31e37746c176f (patch)
tree6682612003c94dfc71227146079881a7ebde11e3 /src/router/index.js
parent64c80504b5d14a179508bd764e107741a80e8be6 (diff)
downloadpuszcza-a163ec2d7497acb51612669a83e31e37746c176f.tar.gz
puszcza-a163ec2d7497acb51612669a83e31e37746c176f.zip
Add NavBar
Diffstat (limited to 'src/router/index.js')
-rw-r--r--src/router/index.js19
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 }]
 });