tentative de merge

This commit is contained in:
2023-12-16 18:00:38 +01:00
parent 86e2528d04
commit 51354d9922
12 changed files with 154 additions and 118 deletions

View File

@ -0,0 +1,19 @@
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}