mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
b43ab65d8a
refs #9866 - preparation for v2 - moved api/ to api/v0.1 - do export v0.1 straight from the api folder, we don't want to touch this right now - that means currently if you require the api folder, we return v0.1 by default - there were some direct requires of api files in the test env - some of them use rewire - for now, we just correct the require path to require api/v0.1/ - we touch the test env next week **Docs about V2 design are coming soon!**
29 lines
508 B
JavaScript
29 lines
508 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;
|