123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import Vue from "vue";
- import VueRouter from "vue-router";
- import Appointments from "../views/Appointments.vue";
- Vue.use(VueRouter);
- const routes = [
- {
- path: "/",
- name: "Appointments",
- component: Appointments
- },
- {
- path: "/about",
- name: "About",
- // route level code-splitting
- // this generates a separate chunk (about.[hash].js) for this route
- // which is lazy-loaded when the route is visited.
- component: () =>
- import(/* webpackChunkName: "about" */ "../views/About.vue")
- },
- {
- path: "/search",
- name: "Search",
- component: () => import("../views/Search.vue")
- },
- {
- path: "/intake",
- name: "Intake",
- component: () => import("../views/Intake.vue")
- },
- {
- path: "/record",
- redirect: "/search"
- },
- {
- path: "/record/:id",
- name: "Record",
- component: () => import("../views/Record.vue"),
- props: true
- },
- {
- path: "/record/:id/:entry_id",
- name: "Entry",
- component: () => import("../views/Record.vue"),
- props: true
- },
- {
- path: "/appointment",
- redirect: "/"
- },
- {
- path: "/appointment/:id",
- name: "Appointment",
- component: () => import("../views/Appointment.vue"),
- props: true
- }
- ];
- const router = new VueRouter({
- // base: "/apps/appointments_alternate",
- routes
- });
- export default router;
|