Add post delete endpoint

This commit is contained in:
2026-01-16 15:45:56 -07:00
parent 5589af810d
commit 0b579800d5
3 changed files with 88 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import { handler as launcherLoaderLatestHandler } from './routes/launcher/loader
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'
import { handler as berrydashProfilePostsDeleteHandler } from './routes/berrydash/profile/posts/delete'
dotenv.config()
@@ -45,6 +46,9 @@ app.get('/berrydash/leaderboards/total', context =>
app.get('/berrydash/profile/posts', context =>
berrydashProfilePostsGetHandler(context)
)
app.delete('/berrydash/profile/posts', context =>
berrydashProfilePostsDeleteHandler(context)
)
app.all('*', () =>
jsonResponse(
{