Can create new accounts
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user