ft_transcendence/frontend/static/js/api/accounts.js

15 lines
261 B
JavaScript
Raw Normal View History

2023-11-27 09:32:17 -05:00
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 }