MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / checkAPIStatus

Function checkAPIStatus

src/utils/helpers.js:338–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336 });
337 },
338 async checkAPIStatus() {
339 try {
340 const res = await fetch(Url.join(config.API_BASE, "status"));
341 return res.ok;
342 } catch (error) {
343 window.log("error", error);
344 return false;
345 }
346 },
347 fixFilename(name) {
348 if (!name) return name;
349 return name.replace(/(\r\n)+|\r+|\n+|\t+/g, "").trim();

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected