mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
refs https://github.com/TryGhost/Team/issues/1599 - allows active newsletters data to be fetched via content API
19 lines
369 B
JavaScript
19 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);
|
|
}
|
|
}
|
|
};
|