Profile avatar resize crop eklendi. Hatalar fixlendi.

This commit is contained in:
2025-12-04 21:29:20 +03:00
parent 3d67900557
commit bbc245ced1
9 changed files with 880 additions and 11 deletions

View File

@@ -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",