// User Management functionality // Function to load users from the backend async function loadUsers() { try { const response = await fetch('/users/', { credentials: 'include' }); if (!response.ok) { throw new Error(`Failed to load users: ${response.statusText}`); } const users = await response.json(); console.log('Loaded users:', users); const tableBody = document.getElementById('users-table-body'); if (!tableBody) { console.error('users-table-body element not found'); return; } if (users.length === 0) { tableBody.innerHTML = '