remove datacollection endpoint

This commit is contained in:
Devin Zuczek
2026-06-30 16:28:50 -04:00
parent 8a40be4391
commit ce5a3551fa
10 changed files with 0 additions and 12242 deletions
@@ -1,37 +0,0 @@
import { Hono } from 'hono'
import { useWorkersLogger } from 'workers-tagged-logger'
import { withNotFound, withOnError } from '@repo/hono-helpers'
import type { App } from './context'
const app = new Hono<App>()
.use(
'*',
// middleware
(c, next) =>
useWorkersLogger(c.env.NAME, {
environment: c.env.ENVIRONMENT,
release: c.env.SENTRY_RELEASE,
})(c, next)
)
.onError(withOnError())
.notFound(withNotFound())
.get('/', (c) => c.json({ service: 'datacollection', status: 'ok' }))
// Telemetry sink. The client POSTs analytics events here; we accept and ack
// 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 `{}`.
.post('/data/heartbeat', (c) => c.json({}))
// Analytics identify call (player/device identification). Accept and ack.
.post('/identify', (c) => c.json({}))
// Generic analytics HTTP API sink. Accept and ack.
.post('/httpapi', (c) => c.json({}))
export default app