Ghost/core/server/models/newsletter.js
Thibaut Patel 9e4401d9f6 Added the newsletters endpoint
refs https://github.com/TryGhost/Team/issues/1463

- This enables listing, creating and editing newsletters
- The tests are commented out as the permissions will be added in a follow-up commit
2022-03-31 15:19:58 +02:00

10 lines
211 B
JavaScript

const ghostBookshelf = require('./base');
const Newsletter = ghostBookshelf.Model.extend({
tableName: 'newsletters'
});
module.exports = {
Newsletter: ghostBookshelf.model('Newsletter', Newsletter)
};