Add leaderboards
This commit is contained in:
4 files changed
+69
-1
No files matched your search
@@ -5,12 +5,16 @@ import { handler as gauntletsGetHandler } from './routes/gauntlets/get'
|
||||
|
||||
import { handler as mapPacksGetHandler } from './routes/map-packs/get'
|
||||
|
||||
import { handler as leaderboardsGetHandler } from './routes/leaderboards/get'
|
||||
|
||||
const app = new Elysia()
|
||||
|
||||
app.listen(3692)
|
||||
|
||||
app.get('/gauntlets', gauntletsGetHandler)
|
||||
app.get('/map-packs', mapPacksGetHandler)
|
||||
app.get('/leaderboards/top', () => leaderboardsGetHandler('top'))
|
||||
app.get('/leaderboards/creators', () => leaderboardsGetHandler('creators'))
|
||||
app.all('*', () =>
|
||||
jsonResponse(
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user