mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
28 lines
511 B
JavaScript
28 lines
511 B
JavaScript
|
// # Slack API
|
||
|
// API for sending Test Notifications to Slack
|
||
|
var events = require('../events'),
|
||
|
Promise = require('bluebird'),
|
||
|
slack;
|
||
|
|
||
|
/**
|
||
|
* ## Slack API Method
|
||
|
*
|
||
|
* **See:** [API Methods](index.js.html#api%20methods)
|
||
|
* @typedef Slack
|
||
|
* @param slack
|
||
|
*/
|
||
|
slack = {
|
||
|
/**
|
||
|
* ### SendTest
|
||
|
* Send a test notification
|
||
|
*
|
||
|
* @public
|
||
|
*/
|
||
|
sendTest: function () {
|
||
|
events.emit('slack.test');
|
||
|
return Promise.resolve();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
module.exports = slack;
|