MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / isUnknownApiRoute

Function isUnknownApiRoute

deployments/desktop/static/desktop.js:1739–1743  ·  view source on GitHub ↗
(error, route = "")

Source from the content-addressed store, hash-verified

1737 }
1738
1739 function isUnknownApiRoute(error, route = "") {
1740 return Number(error?.status) === 404
1741 && String(error?.message || "").includes("Unknown API route")
1742 && (!route || String(error?.path || "").includes(route));
1743 }
1744
1745 async function demoApi(path, options = {}) {
1746 await new Promise((resolve) => window.setTimeout(resolve, 90));

Callers 3

loadChatSessionsFunction · 0.85
loadChatSessionFunction · 0.85
askWikiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected