From 0a63866ae84a4f72efc669eb4058bcd1c1aecc48 Mon Sep 17 00:00:00 2001 From: tsotchke Date: Tue, 14 Jul 2026 10:18:51 -0400 Subject: [PATCH] fix: remove localhost from public API docs --- server.js | 4 ---- test/server.test.js | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/server.js b/server.js index dcc7b96..d041143 100644 --- a/server.js +++ b/server.js @@ -154,10 +154,6 @@ const swaggerOptions = { url: 'https://api.tsotchke.net', description: 'Production', }, - { - url: 'http://localhost:3000', - description: 'Local development', - }, ], tags: [ { name: 'System', description: 'Runtime status and provenance' }, diff --git a/test/server.test.js b/test/server.test.js index 0eaa4b4..3f3d207 100644 --- a/test/server.test.js +++ b/test/server.test.js @@ -107,6 +107,12 @@ test('exposes OpenAPI and returns structured 404 errors', async () => { const openapi = await request('/v1/openapi.json'); assert.equal(openapi.response.status, 200); assert.equal(openapi.body.openapi, '3.0.3'); + assert.deepEqual(openapi.body.servers, [ + { + url: 'https://api.tsotchke.net', + description: 'Production', + }, + ]); const missing = await request('/does-not-exist'); assert.equal(missing.response.status, 404);