summaryrefslogtreecommitdiff
path: root/app/src/router/index.ts
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-11-12 11:37:43 +0100
committerSanto Cariotti <santo@dcariotti.me>2022-11-12 11:37:59 +0100
commit190259bb0f512d881a1dc852ff0c68dd41aeb434 (patch)
treea69841d83fcb7df6809b0389e88e0dcb20c2fd7d /app/src/router/index.ts
parent35c2260f3b23de24a8fdc4c4a96151124ae7ccdf (diff)
Init
Diffstat (limited to 'app/src/router/index.ts')
-rw-r--r--app/src/router/index.ts18
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;