aboutsummaryrefslogtreecommitdiff
path: root/profile/public/users.js
blob: 0f3700afaeb0f144df07018fa28552e971245245 (plain) (blame)
1
2
3
4
5
6
7
8
9
function addUser(user) {
    const div = document.createElement("div");
    // Idk what to do lel
}

fetch("api/users")
    .then((response) => response.json())
    .then((response) => response.forEach(addUser))
    .catch(console.error);