mirror of
https://github.com/strapi/strapi.git
synced 2025-09-16 20:10:05 +00:00
feat: use meta instead of pagination
This commit is contained in:
parent
1dcac25f6e
commit
ea5f6252d7
@ -129,11 +129,8 @@ module.exports = {
|
|||||||
|
|
||||||
ctx.body = {
|
ctx.body = {
|
||||||
data: await mapAsync(workflows, sanitizeOutput),
|
data: await mapAsync(workflows, sanitizeOutput),
|
||||||
pagination: {
|
meta: {
|
||||||
page: 1,
|
workflowCount: workflows.length,
|
||||||
pageCount: 1,
|
|
||||||
pageSize: workflows.length,
|
|
||||||
total: workflows.length,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user