diff options
Diffstat (limited to 'static/api/profile.js')
| -rw-r--r-- | static/api/profile.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/static/api/profile.js b/static/api/profile.js index a9ee591..ec633e0 100644 --- a/static/api/profile.js +++ b/static/api/profile.js @@ -1 +1,8 @@ import * as rest from './rest.js'; + +export async function set(name, birthday) { + await rest.post('/api/profile/set', { + full_name: name, + birthday: birthday, + }); +} |