mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
testing generic deploy
This commit is contained in:
+2
-3
@@ -1,10 +1,9 @@
|
||||
# chat
|
||||
|
||||
Chat worker served at `chat.rec.djdevin.net`.
|
||||
Chat worker served on the `chat` subdomain.
|
||||
|
||||
- `GET /` — service status `{ "service": "chat", "status": "ok" }`.
|
||||
- `GET /thread` — chat threads. No DB binding yet, so returns `[]` (matching the
|
||||
C# `ChatController.Get`).
|
||||
- `GET /thread` — chat threads. No DB binding yet, so returns `[]`.
|
||||
|
||||
## Development
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ const app = new Hono<App>()
|
||||
|
||||
.get('/', (c) => c.json({ service: 'chat', status: 'ok' }))
|
||||
|
||||
// Chat threads. No DB binding yet — the C# `ChatController.Get` returns `[]`.
|
||||
// Chat threads. No DB binding yet — returns `[]`.
|
||||
.get('/thread', (c) => c.json([]))
|
||||
|
||||
export default app
|
||||
|
||||
@@ -3,7 +3,7 @@ import { describe, expect, it } from 'vitest'
|
||||
|
||||
import '../../chat.app'
|
||||
|
||||
const ORIGIN = 'https://chat.rec.djdevin.net'
|
||||
const ORIGIN = 'https://example.com'
|
||||
|
||||
describe('chat endpoints', () => {
|
||||
it('GET / reports service status', async () => {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
"routes": [
|
||||
{
|
||||
"pattern": "chat.rec.djdevin.net",
|
||||
"pattern": "chat.rec.example.com",
|
||||
"custom_domain": true
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user