Can create new accounts

This commit is contained in:
2025-04-09 19:24:59 +02:00
parent 132482c47d
commit 84e1c57dc9
3 changed files with 32 additions and 6 deletions

View File

@ -50,6 +50,19 @@ export class AccountApi {
});
}
/**
* Create a new account
*/
static async Create(name: string): Promise<void> {
await APIClient.exec({
uri: `/account`,
method: "POST",
jsonData: {
name,
},
});
}
/**
* Update account
*/