aboutsummaryrefslogtreecommitdiff
path: root/build/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/index.js')
-rw-r--r--build/index.js2
1 files changed, 1 insertions, 1 deletions
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));