about summary refs log tree commit diff
path: root/src/router/index.js
blob: 83221736e94e1a4da300fdf3c2c054b9773b992f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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";

const routes = [
  { path: "/", component: HomeView },
  { path: "/gallery", component: GalleryView },
  { path: "/download", component: DownloadView },
  { path: "*", component: PageNotFoundView }
];

export const router = new VueRouter({
  mode: "history",
  routes
});