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

Function loadMcpUsers

public/js/adminPanel.js:4380–4390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4378 };
4379
4380 const loadMcpUsers = async () => {
4381 try {
4382 const data = await apiGet('/api/pro/gateways/mcp/users/list.php');
4383 state.mcpUsers = Array.isArray(data.users) ? data.users : [];
4384 renderMcpUsers();
4385 } catch (err) {
4386 state.mcpUsers = [];
4387 renderMcpUsers();
4388 showToast(err?.message || tf('error', 'Error'), 'error');
4389 }
4390 };
4391
4392 const saveMcpUser = async () => {
4393 const payload = {

Callers 3

saveMcpUserFunction · 0.85
deleteMcpUserFunction · 0.85
initGatewaysSectionFunction · 0.85

Calls 4

renderMcpUsersFunction · 0.85
apiGetFunction · 0.70
showToastFunction · 0.70
tfFunction · 0.70

Tested by

no test coverage detected