tweaks to monoservice to return ns doc

This commit is contained in:
Devin Zuczek
2026-07-20 18:23:31 -04:00
parent 9ab4199bd5
commit 30bb6a131c
2 changed files with 7 additions and 7 deletions
@@ -21,8 +21,8 @@ describe('mono routing', () => {
expect(res.headers.get('content-type')).toContain('application/json')
})
test('the facade host (mono.<domain>) falls back to the ns discovery worker', async () => {
const res = await exports.default.fetch('https://mono.recflare.net/')
test('root path (no service, no prefix) serves the ns discovery document', async () => {
const res = await exports.default.fetch(`${ORIGIN}/`)
expect(res.status).toBe(200)
// The ns worker serves the service-discovery document.
expect(await res.json()).toHaveProperty('Auth')