Ghost/core/server/api/slack.js
kirrg001 6f6c8f4521 Import lib/common only
refs #9178

- avoid importing 4 modules (logging, errors, events and i18n)
- simply require common in each file
2017-12-12 10:28:13 +01:00

28 lines
509 B
JavaScript

// # Slack API
// API for sending Test Notifications to Slack
var Promise = require('bluebird'),
common = require('../lib/common'),
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 () {
common.events.emit('slack.test');
return Promise.resolve();
}
};
module.exports = slack;