301 code for changed url

This commit is contained in:
Dan Janosik 2024-11-07 16:36:20 -05:00
parent 665c1bf904
commit c58166b5bf
No known key found for this signature in database
GPG key ID: 70C0B166321C0AF8

View file

@ -859,7 +859,7 @@ router.get("/block-stats", asyncHandler(async (req, res, next) => {
router.get("/mining-template", asyncHandler(async (req, res, next) => {
// url changed
res.redirect("./next-block");
res.redirect(301, "./next-block");
}));
router.get("/next-block", asyncHandler(async (req, res, next) => {