mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
62f2c4a2bf
closes #11015 This simplifies the actions endpoint and allows for filtering and querying of all types of actions across separate resources and actors
20 lines
363 B
JavaScript
20 lines
363 B
JavaScript
const models = require('../../models');
|
|
|
|
module.exports = {
|
|
docName: 'actions',
|
|
|
|
browse: {
|
|
options: [
|
|
'page',
|
|
'limit',
|
|
'fields',
|
|
'include',
|
|
'filter'
|
|
],
|
|
permissions: true,
|
|
query(frame) {
|
|
return models.Action.findPage(frame.options);
|
|
}
|
|
}
|
|
};
|