From 190259bb0f512d881a1dc852ff0c68dd41aeb434 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 12 Nov 2022 11:37:43 +0100 Subject: Init --- app/src/router/index.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 app/src/router/index.ts (limited to 'app/src/router') 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 = [ + { + path: "/", + component: HomePage, + name: "HomePage", + }, +]; + +const router = createRouter({ + history: createWebHistory(process.env.BASE_URL), + routes, +}); + +export default router; -- cgit v1.2.3-18-g5258