MCPcopy Create free account
hub / github.com/socketstream/socketstream / assetPathServed

Function assetPathServed

lib/http/cached.js:127–132  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

125 };
126
127 function assetPathServed(filePath) {
128 if (/\.index\.html/.test(filePath)) {
129 return path.dirname(filePath);
130 }
131 return filePath; // URL path
132 }
133
134 function sendInternal(url,res) {
135 if (url.charAt(0) !== '/') { url = '/'+url; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected