Add GET profile posts endpoint

This commit is contained in:
2026-01-16 13:07:40 -07:00
parent e9ebac3c12
commit 21bbd6df74
2 changed files with 80 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ import { handler as launcherLatestHandler } from './routes/launcher/latest'
import { handler as launcherLoaderLatestHandler } from './routes/launcher/loader/latest'
import { handler as launcherLoaderUpdateDataHandler } from './routes/launcher/loader/update-data'
import { handler as berrydashLeaderboardsHandler } from './routes/berrydash/leaderboards'
import { handler as berrydashProfilePostsGetHandler } from './routes/berrydash/profile/posts/get'
dotenv.config()
@@ -41,6 +42,9 @@ app.get('/berrydash/leaderboards/legacy', context =>
app.get('/berrydash/leaderboards/total', context =>
berrydashLeaderboardsHandler(context, 4)
)
app.get('/berrydash/profile/posts', context =>
berrydashProfilePostsGetHandler(context)
)
app.all('*', () =>
jsonResponse(
{