aboutsummaryrefslogtreecommitdiff
path: root/build/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/index.js')
-rw-r--r--build/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/index.js b/build/index.js
index 52e711c..0d8bd70 100644
--- a/build/index.js
+++ b/build/index.js
@@ -28,4 +28,7 @@ app.get('/player/:user/:profile', async (req, res) => {
app.get('/leaderboard/:name', async (req, res) => {
res.json(await database_1.fetchMemberLeaderboard(req.params.name));
});
+app.get('/leaderboards', async (req, res) => {
+ res.json(await database_1.fetchAllLeaderboardsCategoriezed());
+});
app.listen(8080, () => console.log('App started :)'));