0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/api/v0.1/slack.js

29 lines
508 B
JavaScript
Raw Normal View History

// # 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;