From 154b2512bcc4369b58f5c3d6a53185a468722c78 Mon Sep 17 00:00:00 2001 From: Kuna <65683493+Thesourtimes@users.noreply.github.com> Date: Sat, 18 Dec 2021 16:21:05 +0000 Subject: [PATCH] Update downloads.ts --- api/src/routes/downloads.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/routes/downloads.ts b/api/src/routes/downloads.ts index de261702..ad78b62f 100644 --- a/api/src/routes/downloads.ts +++ b/api/src/routes/downloads.ts @@ -8,6 +8,7 @@ router.get("/:branch", route({}), async (req: Request, res: Response) => { const { client } = Config.get(); const { branch } = req.params; const { platform } = req.query; + //TODO if(!platform || !["linux", "osx", "win"].includes(platform.toString())) return res.status(404)