19 lines
323 B
JavaScript
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} |