Feature: Foto-Editor im Hundeprofil — Zoom, Drag-to-pan, Löschen

This commit is contained in:
rene 2026-04-17 23:00:21 +02:00
parent cb8ac8cffd
commit 913cebcba1
6 changed files with 234 additions and 35 deletions

View file

@ -93,6 +93,10 @@ const API = (() => {
update(id, data) { return patch(`/dogs/${id}`, data); },
delete(id) { return del(`/dogs/${id}`); },
uploadPhoto(id, formData) { return upload(`/dogs/${id}/photo`, formData); },
updatePhotoPosition(id, zoom, offsetX, offsetY) {
return patch(`/dogs/${id}/photo-position`, { zoom, offset_x: offsetX, offset_y: offsetY });
},
deletePhoto(id) { return del(`/dogs/${id}/photo`); },
};
// ----------------------------------------------------------