summaryrefslogtreecommitdiff
path: root/iridescence/src/router/index.js
blob: ce48c8c24eda3f95392cecc948d9ef273546ea3f (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
import Care from "../views/Care.vue";
import Faq from "../views/Faq.vue";
import Admin from "../views/Admin.vue";
import Cart from "../views/Cart.vue";
import Checkout from "../views/Checkout.vue";
import Privacy from "../views/Privacy.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home
  },
  {
    path: "/admin",
    name: "Administration",
    component: Admin
  },
  {
    path: "/cart",
    name: "Cart",
    component: Cart
  },
  {
    path: "/checkout",
    name: "Checkout",
    component: Checkout
  },
  {
    path: "/faq",
    name: "F.A.Q.",
    component: Faq
  },
  {
    path: "/care",
    name: "Care & Handling",
    component: Care
  },
  {
    path: "/privacy",
    name: "Privacy",
    component: Privacy
  }
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
});

export default router;