aboutsummaryrefslogtreecommitdiff
path: root/profile/public/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'profile/public/users.js')
-rw-r--r--profile/public/users.js9
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);