text: const logout = async () => {
    event.preventDefault();
      const response = await fetch('/api/users/logout', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
      });
  
      if (response.ok) {
        document.location.replace('/');
      } else {
        alert(response.statusText);
      }
    };
  
    document.querySelector('#logoutBtn').addEventListener('click', logout);
  