0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api/canary/newsletters-public.js

20 lines
369 B
JavaScript
Raw Normal View History

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);
}
}
};