diff options
Diffstat (limited to 'app/src/router')
-rw-r--r-- | app/src/router/index.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/src/router/index.ts b/app/src/router/index.ts new file mode 100644 index 0000000..86cf89f --- /dev/null +++ b/app/src/router/index.ts @@ -0,0 +1,18 @@ +import { createRouter, createWebHistory } from "@ionic/vue-router"; +import { RouteRecordRaw } from "vue-router"; +import HomePage from "../views/HomePage.vue"; + +const routes: Array<RouteRecordRaw> = [ + { + path: "/", + component: HomePage, + name: "HomePage", + }, +]; + +const router = createRouter({ + history: createWebHistory(process.env.BASE_URL), + routes, +}); + +export default router; |