mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
feat: paginate workflow find
This commit is contained in:
parent
2a92cba09d
commit
1dcac25f6e
@ -129,6 +129,12 @@ module.exports = {
|
|||||||
|
|
||||||
ctx.body = {
|
ctx.body = {
|
||||||
data: await mapAsync(workflows, sanitizeOutput),
|
data: await mapAsync(workflows, sanitizeOutput),
|
||||||
|
pagination: {
|
||||||
|
page: 1,
|
||||||
|
pageCount: 1,
|
||||||
|
pageSize: workflows.length,
|
||||||
|
total: workflows.length,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user