From 2dfa78997d1bf88f1c6ab26f5eb033d94ee167f1 Mon Sep 17 00:00:00 2001 From: sinkaroid Date: Sun, 5 Jun 2022 19:13:57 +0700 Subject: [PATCH] fix: make `/g/:id` route looks clearly --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f87484c..1747068 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,7 +26,7 @@ app.get("/", slow, limiter, (req, res) => { app.use(scrapeRoutes()); app.get("/g/:id", slow, limiter, (req, res) => { - if (!isNumeric(req.params.id)) throw Error("Parameter id must be number"); + if (!isNumeric(req.params.id)) throw Error("This path need required number to work"); res.redirect(301, `https://nhentai.net/g/${req.params.id}`); });