about summary refs log tree commit diff
path: root/src/router/index.js
blob: 532747a42c56ea91614d4cc96242a88ed7113244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 }]
});