0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/api/slack.js
2018-09-18 15:59:56 +02:00

28 lines
505 B
JavaScript

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