add: register page

This commit is contained in:
2023-11-27 15:32:17 +01:00
parent 6a4e161d71
commit a965adfdce
5 changed files with 97 additions and 1 deletions

View File

@ -0,0 +1,15 @@
class Accounts
{
constructor (client)
{
this.client = client;
}
async create(username, password)
{
let response = await this.client._post("/api/accounts/register", {username: username, password: password});
return response
}
}
export { Accounts }