Profile avatar resize crop eklendi. Hatalar fixlendi.
This commit is contained in:
@@ -97,6 +97,20 @@ export async function deleteFromTrash(trashName) {
|
||||
return res.json();
|
||||
}
|
||||
|
||||
// 👤 Profil
|
||||
export async function fetchProfile() {
|
||||
const res = await apiFetch("/api/profile");
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function uploadAvatar(formData) {
|
||||
const res = await apiFetch("/api/profile/avatar", {
|
||||
method: "POST",
|
||||
body: formData
|
||||
});
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function moveEntry(sourcePath, targetDirectory) {
|
||||
const res = await apiFetch("/api/file/move", {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user