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 /src/index.ts | |
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 'src/index.ts')
-rw-r--r-- | src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index 1e641a1..06bdc5f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -33,7 +33,7 @@ app.get('/player/:user', async(req, res) => { res.json( await fetchUser( { user: req.params.user }, - ['profiles', 'player'] + [req.query.basic as string === 'true' ? undefined : 'profiles', 'player'] ) ) }) |