aboutsummaryrefslogtreecommitdiff
path: root/static/api/profile.js
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-05-20 10:16:50 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-05-20 10:16:50 +0200
commit44445734ba4a0f05564f808c2fd34a7f23c6fafb (patch)
tree3bd22add718620cbf931286f55137bcc666100be /static/api/profile.js
parent95ae9f15e1db335a7f8358d811ea37e2c89dd10f (diff)
Let's do a rewrite!
Created project structure and changed `build.zig` and added licence.
Diffstat (limited to 'static/api/profile.js')
-rw-r--r--static/api/profile.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/static/api/profile.js b/static/api/profile.js
deleted file mode 100644
index d6acd16..0000000
--- a/static/api/profile.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import * as rest from './rest.js';
-
-export async function set(name, birthday) {
- await rest.post('/api/profile/set', {
- full_name: name,
- birthday: birthday,
- });
-}
-
-export function update_password(old, next) {
- return rest.post('/api/profile/update-password', {
- current_password: old,
- new_password: next,
- }).then(r => r.success);
-}