diff options
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 }] }); |