This commit is contained in:
seb
2026-08-03 00:22:46 +02:00
parent 52e4d3d9c9
commit 8577a63b06
8 changed files with 189 additions and 68 deletions

View File

@@ -359,6 +359,18 @@ export const category = {
body: { parentId, categoryIds },
});
},
/**
* PATCH /api/category/:id [VORSCHLAG — Route/response fehlt noch in dashback]
* Body: { parentId } — moves the category under a new parent.
* → 200 { category: { id, parentId, name, slug } }
*/
move(categoryId, parentId) {
return http(`/api/category/${categoryId}`, {
method: 'PATCH',
body: { parentId },
});
},
};
/**