diff --git a/core/server/api/canary/utils/serializers/output/index.js b/core/server/api/canary/utils/serializers/output/index.js index 27b08d83b6..2a441048e8 100644 --- a/core/server/api/canary/utils/serializers/output/index.js +++ b/core/server/api/canary/utils/serializers/output/index.js @@ -41,10 +41,6 @@ module.exports = { return require('./schedules'); }, - get webhooks() { - return require('./webhooks'); - }, - get posts() { return require('./posts'); }, diff --git a/core/server/api/canary/utils/serializers/output/webhooks.js b/core/server/api/canary/utils/serializers/output/webhooks.js deleted file mode 100644 index 6f97ef7683..0000000000 --- a/core/server/api/canary/utils/serializers/output/webhooks.js +++ /dev/null @@ -1,15 +0,0 @@ -const debug = require('@tryghost/debug')('api:canary:utils:serializers:output:webhooks'); - -module.exports = { - all(models, apiConfig, frame) { - debug('all'); - // CASE: e.g. destroy returns null - if (!models) { - return; - } - - frame.response = { - webhooks: [models.toJSON(frame.options)] - }; - } -};