Feature: Foto-Editor im Hundeprofil — Zoom, Drag-to-pan, Löschen
This commit is contained in:
parent
cb8ac8cffd
commit
913cebcba1
6 changed files with 234 additions and 35 deletions
|
|
@ -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`); },
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue