From 5e67d98d00f5fc2b1bf638935249fe95f913b858 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Sun, 13 Sep 2026 00:40:26 +0000 Subject: [PATCH] Serve the OpenAccess descriptor at /.well-known/openaccess.json Static files are served only under /icons and /static, so the descriptor merged in #4 was never reachable. Spec: https://logicsrc.com/openaccess Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01SWRffW4ifQPUrGXJtgYWMd --- apps/web/src/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/web/src/app.js b/apps/web/src/app.js index 8670bd8..0e4d0d7 100644 --- a/apps/web/src/app.js +++ b/apps/web/src/app.js @@ -344,6 +344,11 @@ app.get('/browserconfig.xml', serveStatic({ path: './apps/web/public/icons/brows app.use('/icons/*', serveStatic({ root: './apps/web/public' })); app.use('/static/*', serveStatic({ root: './apps/web/public' })); +// The OpenAccess descriptor (logicsrc.com/openaccess): hubs read it from this +// origin to list the site; only the allowlisted static paths above are served, +// so it needs its own route. +app.get('/.well-known/openaccess.json', serveStatic({ path: './apps/web/public/.well-known/openaccess.json' })); + // ---------------------------------------------------------------------- pages app.get('/', (c) => render(c, ));