UNPKG

ghost

Version:

The professional publishing platform

19 lines (16 loc) 468 B
// Used to call the slack ping service, iirc this was done to avoid circular deps a long time ago const events = require('../../lib/common/events'); /** @type {import('@tryghost/api-framework').Controller} */ const controller = { docName: 'slack', sendTest: { headers: { cacheInvalidate: false }, permissions: false, query() { events.emit('slack.test'); } } }; module.exports = controller;