add empty chat endpoint

This commit is contained in:
Devin Zuczek
2026-06-12 17:28:00 -04:00
parent 4d1ea9fe3e
commit e89bf3451f
14 changed files with 12762 additions and 493 deletions
+27
View File
@@ -0,0 +1,27 @@
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: 'chat', status: 'ok' }))
// Chat threads. No DB binding yet — the C# `ChatController.Get` returns `[]`.
.get('/thread', (c) => c.json([]))
export default app