summaryrefslogtreecommitdiff
path: root/app/src/router/index.ts
blob: a3dd783313a783ec76c914ffcd5c9c9990c8250b (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 { createRouter, createWebHistory } from "@ionic/vue-router";
import { RouteRecordRaw } from "vue-router";
import HomePage from "../views/HomePage.vue";
import Sign from "../views/Sign.vue";

const routes: Array<RouteRecordRaw> = [
    { path: "/", redirect: "/home" },
    {
        path: "/home",
        component: HomePage,
        name: "HomePage",
    },
    {
        path: "/sign",
        component: Sign,
        name: "Sign",
    },
];

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes,
});

export default router;