mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
20 lines
369 B
JavaScript
20 lines
369 B
JavaScript
|
const models = require('../../models');
|
||
|
|
||
|
module.exports = {
|
||
|
docName: 'newsletters',
|
||
|
|
||
|
browse: {
|
||
|
options: [
|
||
|
'filter',
|
||
|
'fields',
|
||
|
'limit',
|
||
|
'order',
|
||
|
'page'
|
||
|
],
|
||
|
permissions: true,
|
||
|
query(frame) {
|
||
|
return models.Newsletter.findPage(frame.options);
|
||
|
}
|
||
|
}
|
||
|
};
|