Skip to content

Commit 71511e0

Browse files
committed
fix: /api/accounts/:address/ child routes
1 parent aaccf3f commit 71511e0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

api/routes/accounts/account/index.mjs

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import balance_history from './balance_history.mjs'
55

66
const router = express.Router({ mergeParams: true })
77

8-
router.use('/:address/balance_history', balance_history)
8+
router.use('/balance_history', balance_history)
99

10-
router.get('/:address/blocks_per_day', async (req, res) => {
10+
router.get('/blocks_per_day', async (req, res) => {
1111
const { logger, cache, db } = req.app.locals
1212
try {
1313
const { address } = req.params
@@ -57,7 +57,7 @@ router.get('/:address/blocks_per_day', async (req, res) => {
5757
}
5858
})
5959

60-
router.get('/:address/stats', async (req, res) => {
60+
router.get('/stats', async (req, res) => {
6161
const { logger, cache, db } = req.app.locals
6262
try {
6363
const { address } = req.params
@@ -132,7 +132,7 @@ router.get('/:address/stats', async (req, res) => {
132132
}
133133
})
134134

135-
router.get('/:address/open', async (req, res) => {
135+
router.get('/open', async (req, res) => {
136136
const { logger, cache, db } = req.app.locals
137137
try {
138138
const { address } = req.params
@@ -170,7 +170,7 @@ router.get('/:address/open', async (req, res) => {
170170
}
171171
})
172172

173-
router.get('/:address/blocks/:type/summary', async (req, res) => {
173+
router.get('/blocks/:type/summary', async (req, res) => {
174174
const { logger, cache, db } = req.app.locals
175175
try {
176176
const { address, type } = req.params

0 commit comments

Comments
 (0)