summaryrefslogtreecommitdiff
path: root/src/router
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-19 14:23:46 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-19 14:23:46 +0100
commitb70b5e9cf0d7c1ef66e7ef98f2a1f5edd8565891 (patch)
tree91469a74ac582f8366ff0ac7ff09da5eb103e715 /src/router
parent1ff1aa8dc35bfb02f01fd5f09499a4c5e9f35db1 (diff)
feat: reset vue projet to start
Diffstat (limited to 'src/router')
-rw-r--r--src/router/index.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/router/index.js b/src/router/index.js
new file mode 100644
index 0000000..5dc4e51
--- /dev/null
+++ b/src/router/index.js
@@ -0,0 +1,22 @@
+import Vue from 'vue'
+import VueRouter from 'vue-router'
+
+import Home from '@/views/Home.vue'
+
+Vue.use(VueRouter)
+
+const routes = [
+ {
+ path: '/',
+ name: 'Home',
+ component: Home,
+ }
+]
+
+const router = new VueRouter({
+ mode: 'history',
+ base: process.env.BASE_URL,
+ routes
+})
+
+export default router