diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-10-30 23:26:23 -0400 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-10-30 23:26:23 -0400 |
| commit | 80220d2188e0553304f2c78d225bbe275d8ba572 (patch) | |
| tree | de0a62325c698197612574c7a9f37dad279581be /ui/lib/apiServer.js | |
| parent | 51aabd07ca5eeaee45a564f8799cc42dc195068c (diff) | |
| parent | 35b8a914b867237c9c64f33838b1e1f85fc46fb8 (diff) | |
Merge branch 'main' into wip/mobile
Diffstat (limited to 'ui/lib/apiServer.js')
| -rw-r--r-- | ui/lib/apiServer.js | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/ui/lib/apiServer.js b/ui/lib/apiServer.js index 19dcf60..5c6e5ef 100644 --- a/ui/lib/apiServer.js +++ b/ui/lib/apiServer.js @@ -10,20 +10,12 @@ export async function boot() { return apiServer.get('/boot'); } -export async function setup(username, password) { - const data = { - name: username, - password, - }; - return apiServer.post('/setup', data); +export async function setup(name, password) { + return apiServer.post('/setup', { name, password }); } -export async function logIn(username, password) { - const data = { - name: username, - password, - }; - return apiServer.post('/auth/login', data); +export async function logIn(name, password) { + return apiServer.post('/auth/login', { name, password }); } export async function logOut() { @@ -46,7 +38,7 @@ export async function deleteMessage(messageId) { // TODO } -export async function createInvite(inviteId) { +export async function createInvite() { return apiServer.post(`/invite`, {}); } |
