diff --git a/server/index.ts b/server/index.ts index 8aa2b04..b2667aa 100644 --- a/server/index.ts +++ b/server/index.ts @@ -3340,7 +3340,7 @@ const server = Bun.serve({ // rspace.online/{space}/{...} → handle space-prefixed paths // (space is not a module ID — it's a space slug) // Skip for known server paths (api, admin, etc.) - const serverPaths = new Set(["api", "admin", "admin-data", "admin-action", ".well-known"]); + const serverPaths = new Set(["api", "admin", "admin-data", "admin-action", "modules", ".well-known"]); if (!knownModuleIds.has(firstSegment) && !serverPaths.has(firstSegment) && pathSegments.length >= 2) { const secondSeg = pathSegments[1]?.toLowerCase(); const isApiCall = secondSeg === "api" || pathSegments.some((s, i) => i >= 1 && s === "api");