diff --git a/src/gateway/public-gateway.mjs b/src/gateway/public-gateway.mjs index 98352d9..4bc5abb 100644 --- a/src/gateway/public-gateway.mjs +++ b/src/gateway/public-gateway.mjs @@ -38,7 +38,7 @@ const TLD_BEACON_SCRIPTHASH = NETWORK.tldBeaconScripthash; const FULL_ELECTRUM = NETWORK.electrum.filter((s) => !NETWORK.beaconOnly.test(s.url)); // Sia bucket holding operator-provided hosting: //… const HOSTING_BUCKET = NETWORK.hostingBucket; -import { pickRecord, isSubdomainOf } from "./record-picker.js"; +import { pickRecord, isSubdomainOf, subLabelsOf, hostOverride, hostAction, subFolderFor } from "./record-picker.js"; import { verifyManifest } from "./manifest.js"; // flat at runtime: /opt/bns-gateway/ has no lib/ import { buildTldSnapshot } from "./tld-index.js"; import { verifyListing } from "./market-tx.js"; @@ -321,10 +321,36 @@ async function resolve(host) { cache.set(host, { entry, at: Date.now() }); return entry; } -// subfolder = labels before the registered "