mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +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;
|