MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / resolveResourceUrl

Function resolveResourceUrl

eat/eat.ts:58–63  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

56let resourceBaseUrl = "";
57
58let baseConfigURL =
59 "https://raw.githubusercontent.com/TeleBoxOrg/TeleBox-Plugins/refs/heads/main/eat/config.json";
60
61function resolveResourceUrl(path: string): string {
62 if (path.startsWith("http://") || path.startsWith("https://")) {
63 return path;
64 }
65 return `${resourceBaseUrl}/${path}`;
66}

Callers 1

getAssetBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected