Ghost/core/server/api/slack.js
2017-12-14 14:13:40 +01:00

28 lines
513 B
JavaScript

// # Slack API
// API for sending Test Notifications to Slack
var Promise = require('bluebird'),
common = require('../lib/common'),
slack;
/**
* ## Slack API Method
*
* **See:** [API Methods](constants.js.html#api%20methods)
* @typedef Slack
* @param slack
*/
slack = {
/**
* ### SendTest
* Send a test notification
*
* @public
*/
sendTest: function () {
common.events.emit('slack.test');
return Promise.resolve();
}
};
module.exports = slack;