MCPcopy Create free account
hub / github.com/error311/FileRise / saveAllPortals

Function saveAllPortals

public/js/adminPortals.js:562–573  ·  view source on GitHub ↗
(portals)

Source from the content-addressed store, hash-verified

560}
561
562async function saveAllPortals(portals) {
563 const res = await fetch('/api/pro/portals/save.php', {
564 method: 'POST',
565 credentials: 'include',
566 headers: {
567 'Content-Type': 'application/json',
568 'X-CSRF-Token': window.csrfToken || ''
569 },
570 body: JSON.stringify({ portals })
571 });
572 return await safeJson(res);
573}
574
575let __portalsCache = {};
576// Shared folder list for portal folder picker (reuses getFolderList.php like folderManager.js)

Callers 1

saveClientPortalsFromUIFunction · 0.85

Calls 1

safeJsonFunction · 0.70

Tested by

no test coverage detected