ft_transcendence/frontend/static/js/api/MyProfile.js
2023-12-16 18:00:38 +01:00

19 lines
323 B
JavaScript

import { Profile } from "./profile.js";
class MyProfile extends Profile
{
async change_avatar(form_data)
{
let response = await this.client._patch_file(`/api/profiles/me`, form_data);
let response_data = await response.json()
return response_data;
}
async init()
{
super.init("me");
}
}
export {MyProfile}