summaryrefslogtreecommitdiff
path: root/src/router.js
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-23 15:15:04 +0100
committerGitHub <noreply@github.com>2021-03-23 15:15:04 +0100
commit4bc0c4b4d51281b6dde2f77e33fd6c93dba83d03 (patch)
tree17ef25b0567097346cfb8ba233b9b1d010984676 /src/router.js
parent3718df3919de151cc754e273cb56b2e72dbe2caa (diff)
parent08febdd980c06d752d410be1fa982e5507279f6d (diff)
Merge pull request #9 from gico-net/feat/commit-details-page
Commit details page
Diffstat (limited to 'src/router.js')
-rw-r--r--src/router.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/router.js b/src/router.js
index 5dc4e51..9363d15 100644
--- a/src/router.js
+++ b/src/router.js
@@ -2,6 +2,7 @@ import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '@/views/Home.vue'
+import Commit from '@/views/Commit.vue'
Vue.use(VueRouter)
@@ -10,6 +11,12 @@ const routes = [
path: '/',
name: 'Home',
component: Home,
+ },
+ {
+ path: '/commit/:hash',
+ name: 'Commit',
+ component: Commit,
+ props: true
}
]