aboutsummaryrefslogtreecommitdiff
path: root/src/router/routes.js
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2024-07-14 16:17:59 -0500
committerMark Powers <mark@marks.kitchen>2024-07-14 16:17:59 -0500
commit0e742a485f3fa7d35d26b05980a293b5760e8418 (patch)
tree97510b5e1979f7e02dbcb17ccbc699c4f97e63f2 /src/router/routes.js
Initial commitHEADmaster
Diffstat (limited to 'src/router/routes.js')
-rw-r--r--src/router/routes.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/router/routes.js b/src/router/routes.js
new file mode 100644
index 0000000..b8500ad
--- /dev/null
+++ b/src/router/routes.js
@@ -0,0 +1,22 @@
+
+const routes = [
+ {
+ path: '/',
+ component: () => import('layouts/MainLayout.vue'),
+ children: [
+ { path: '', component: () => import('pages/IndexPage.vue') },
+ { path: '/books', component: () => import('pages/BookPage.vue') },
+ { path: '/forms', component: () => import('pages/FormPage.vue') },
+ { path: '/workouts', component: () => import('pages/WorkoutPage.vue') },
+ ]
+ },
+
+ // Always leave this as last one,
+ // but you can also remove it
+ {
+ path: '/:catchAll(.*)*',
+ component: () => import('pages/ErrorNotFound.vue')
+ }
+]
+
+export default routes