diff options
author | LarsVomMars | 2020-10-16 20:03:56 +0200 |
---|---|---|
committer | LarsVomMars | 2020-10-16 20:03:56 +0200 |
commit | ff7f93139a63256c27e2ca25f03b12bdb0903667 (patch) | |
tree | ac28b506034006008cfc301bbb76c71c491c9593 /profile/public/users.js | |
parent | 5ecbb3244745c8ec311facc49917e901b81ff783 (diff) |
What am I doing
Diffstat (limited to 'profile/public/users.js')
-rw-r--r-- | profile/public/users.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/profile/public/users.js b/profile/public/users.js new file mode 100644 index 0000000..0f3700a --- /dev/null +++ b/profile/public/users.js @@ -0,0 +1,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); |