aboutsummaryrefslogtreecommitdiff
path: root/client/src/router
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-08 17:21:03 +0200
committerMateja <mail@matejamaric.com>2021-07-08 17:21:03 +0200
commitb53de384fb235155e48ab505719d65ee5f2fbe03 (patch)
tree0c3d95fc767ca5c8b70e8aa7d53ed15cc9ee6a60 /client/src/router
downloadmevn-ecommerce-b53de384fb235155e48ab505719d65ee5f2fbe03.tar.gz
mevn-ecommerce-b53de384fb235155e48ab505719d65ee5f2fbe03.zip
Added frontend boilerplate...
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