add playerevents endpoint, whatever that is

This commit is contained in:
Devin Zuczek
2026-07-23 14:28:32 -04:00
parent 2f6a40279d
commit 725540a95b
2 changed files with 22 additions and 0 deletions
+14
View File
@@ -194,6 +194,20 @@ export const gameplayRoutes = new Hono<App>({ strict: false })
}),
(c) => c.json({ ContinuationToken: '', Events: [] })
)
// Live player-event search (the "happening now" browse query). No player-event
// storage yet, so there's nothing live to return — a bare empty array.
.get(
'/api/playerevents/v1/searchlive',
describeRoute({
tags: ['Gameplay'],
summary: 'Search live player events',
description:
'The "happening now" search on the player-events browse screen. No player-event ' +
'storage yet, so there are no live events — returns an empty list.',
responses: { 200: json(JsonArray, 'An empty list') },
}),
(c) => c.json([])
)
.get(
'/api/announcement/v1/get',
describeRoute({