mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
a3091a3012
refs #9178
28 lines
513 B
JavaScript
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;
|