From ae707e94622824a5fe5a2466f2a9a73c3449393b Mon Sep 17 00:00:00 2001 From: vrtnd Date: Mon, 12 Aug 2024 19:43:28 +0300 Subject: [PATCH] Fix --- api2/routes/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api2/routes/index.ts b/api2/routes/index.ts index 5fddc239..68871f0a 100644 --- a/api2/routes/index.ts +++ b/api2/routes/index.ts @@ -25,13 +25,15 @@ export default function setRoutes(router: HyperExpress.Router) { })) router.get("/stablecoincharts2/:chain", ew(async (req: any, res: any) => { let { chain } = req.path_parameters; + chain = decodeURIComponent(chain) chain = normalizeChain(chain) return fileResponse('/stablecoincharts2/' + chain, res); })); // TOO: nuke this route to reduce load on the server router.get("/stablecoincharts/:chain", ew(async (req: any, res: any) => { - let { chain } = req.path_parameters; + let { chain } = req.path_parameters + chain = decodeURIComponent(chain) let { stablecoin, starts, startts } = req.query chain = normalizeChain(chain) if (!stablecoin) return fileResponse('/stablecoincharts/' + chain, res);