Skip to content

Commit 021a2e7

Browse files
committed
Merge branch 'master' of github.com:khaihkd/tomoscan
2 parents 23e48b6 + 9dfd0a3 commit 021a2e7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

client/nuxt.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,11 @@ module.exports = {
101101
toast: {
102102
position: 'bottom-center',
103103
duration: 2000
104+
},
105+
router: {
106+
extendRoutes (routes) {
107+
routes.push({ name: 'tx', path: '/tx', component: 'pages/txs/index.vue' })
108+
routes.push({ name: 'tx_slug', path: '/tx/:slug', component: 'pages/txs/_slug.vue' })
109+
}
104110
}
105111
}

server/src/api/TxController.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ TxController.get('/txs', [
242242
}
243243
})
244244

245-
TxController.get('/txs/:slug', [
245+
TxController.get(['/txs/:slug', '/tx/:slug'], [
246246
check('slug').exists().isLength({ min: 66, max: 66 }).withMessage('Transaction hash is incorrect.')
247247
], async (req, res) => {
248248
let errors = validationResult(req)

0 commit comments

Comments
 (0)