aboutsummaryrefslogtreecommitdiff
path: root/client/src/router
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/router')
-rw-r--r--client/src/router/index.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/client/src/router/index.js b/client/src/router/index.js
new file mode 100644
index 0000000..22d739e
--- /dev/null
+++ b/client/src/router/index.js
@@ -0,0 +1,23 @@
+import {createRouter, createWebHistory} from 'vue-router';
+import Home from '../views/Home.vue';
+import ExamplePage from '../views/ExamplePage.vue';
+
+const routes = [
+ {
+ path: '/',
+ name: 'Home',
+ component: Home
+ },
+ {
+ path: '/example',
+ name: 'Example',
+ component: ExamplePage
+ }
+]
+
+const router = createRouter({
+ history: createWebHistory(process.env.BASE_URL),
+ routes
+})
+
+export default router