Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Aug 12, 2024
1 parent 89c87af commit ae707e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api2/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae707e9

Please sign in to comment.