more endpoints, fix orientation on new accounts

This commit is contained in:
Devin Zuczek
2026-06-15 22:39:24 -04:00
parent 5f3ec3b8c7
commit 335b4d68ce
16 changed files with 554 additions and 87 deletions
@@ -22,16 +22,16 @@ const app = new Hono<App>()
.get('/', (c) => c.json({ service: 'datacollection', status: 'ok' }))
// Telemetry sink. The client POSTs analytics events here; we accept and ack
// without persisting (no binding yet). Body shape is unknown/unused.
.post('/data/event', (c) => c.body(null, 200))
// with an empty JSON object (no persistence — no binding yet).
.post('/data/event', (c) => c.json({}))
// Periodic session heartbeat. Same deal — accept and ack with 200.
.post('/data/heartbeat', (c) => c.body(null, 200))
// Periodic session heartbeat. Same deal — accept and ack with `{}`.
.post('/data/heartbeat', (c) => c.json({}))
// Analytics identify call (player/device identification). Accept and ack.
.post('/identify', (c) => c.body(null, 200))
.post('/identify', (c) => c.json({}))
// Generic analytics HTTP API sink. Accept and ack.
.post('/httpapi', (c) => c.body(null, 200))
.post('/httpapi', (c) => c.json({}))
export default app