1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-06 19:02:33 +01:00

Update downloads.ts

This commit is contained in:
Kuna 2021-12-18 16:21:05 +00:00 committed by GitHub
parent 442879e80a
commit 154b2512bc

View File

@ -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)