ft_transcendence/frontend/static/js/api/accounts.js
2023-11-27 15:32:17 +01:00

15 lines
261 B
JavaScript

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 }