From 644e9c6629453b07844ca83fab7fbe9a3185b4b6 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 30 Apr 2021 18:38:26 -0500 Subject: add "basic" url parameter to /player/ --- build/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build') diff --git a/build/index.js b/build/index.js index 2d7ab25..0a6944c 100644 --- a/build/index.js +++ b/build/index.js @@ -31,7 +31,7 @@ app.get('/', async (req, res) => { res.json({ ok: true }); }); app.get('/player/:user', async (req, res) => { - res.json(await hypixel_1.fetchUser({ user: req.params.user }, ['profiles', 'player'])); + res.json(await hypixel_1.fetchUser({ user: req.params.user }, [req.query.basic === 'true' ? undefined : 'profiles', 'player'])); }); app.get('/player/:user/:profile', async (req, res) => { res.json(await hypixel_1.fetchMemberProfile(req.params.user, req.params.profile)); -- cgit