mirror of
https://github.com/janoside/btc-rpc-explorer.git
synced 2026-08-13 12:33:13 +02:00
crawler keeps hitting the wrong url
i shouldn't cater to it...
This commit is contained in:
parent
c58166b5bf
commit
66839bdc2d
1 changed files with 6 additions and 0 deletions
|
|
@ -1360,6 +1360,12 @@ router.get("/block-analysis", function(req, res, next) {
|
|||
next();
|
||||
});
|
||||
|
||||
router.get("/tx/tx/:transactionId", asyncHandler(async (req, res, next) => {
|
||||
res.redirect(301, `${config.baseUrl}tx/${req.params.transactionId}`);
|
||||
|
||||
return;
|
||||
}));
|
||||
|
||||
router.get("/tx/:transactionId@:blockHeight", asyncHandler(async (req, res, next) => {
|
||||
req.query.blockHeight = req.params.blockHeight;
|
||||
req.url = "/tx/" + req.params.transactionId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue