u
This commit is contained in:
@@ -125,6 +125,21 @@ export const category = {
|
||||
},
|
||||
// #endregion
|
||||
|
||||
/**
|
||||
* POST /api/category/:id/image/generate
|
||||
* Body (optional): { size?: 2 | 3 | 4 }
|
||||
* → 200 { category: { id, fullHash, thumbW, thumbH, thumbHash, size, grid, articleCount } }
|
||||
*/
|
||||
// #region POST /api/category/:id/image/generate — generateImage
|
||||
generateImage(categoryId, { size } = {}) {
|
||||
return http(`/api/category/${categoryId}/image/generate`, {
|
||||
method: 'POST',
|
||||
body: size != null ? { size } : undefined,
|
||||
});
|
||||
},
|
||||
// #endregion
|
||||
|
||||
|
||||
/**
|
||||
* GET /api/category/export.zip → application/zip (binary download)
|
||||
* `kategorien.zip` = kategorien.csv (semicolon-separated, Windows-1252,
|
||||
|
||||
Reference in New Issue
Block a user