diff options
author | mat <github@matdoes.dev> | 2021-04-30 18:38:26 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-04-30 18:38:26 -0500 |
commit | 644e9c6629453b07844ca83fab7fbe9a3185b4b6 (patch) | |
tree | 07807ef238792c42384621dd7069c8d78abd692a /build | |
parent | 75ea81fa6565457a55b66d598bad6e5e7999be4e (diff) | |
download | skyblock-api-644e9c6629453b07844ca83fab7fbe9a3185b4b6.tar.gz skyblock-api-644e9c6629453b07844ca83fab7fbe9a3185b4b6.tar.bz2 skyblock-api-644e9c6629453b07844ca83fab7fbe9a3185b4b6.zip |
add "basic" url parameter to /player/<user>
Diffstat (limited to 'build')
-rw-r--r-- | build/index.js | 2 |
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)); |