mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
4237446277
no issue - Consistent naming for postLookup - makes it easier to search and inspect the various usages - Cleanup unneeded code - Make res.render calls more consistent - add some consistency to the calls to res.render - Remove ancient reference to dataProvider - Let's call it models everywhere now... - Use consistent formatting across the API - we're no longer using alignment in vars - Misc other consistency changes in API - always refer to local utils as apiUtils - logical grouping of requires - dependencies, utils, "lib common" etc - use xAPI to refer to API endpoints, e.g. mailAPI, settingsAPI for clarity
28 lines
498 B
JavaScript
28 lines
498 B
JavaScript
// # Slack API
|
|
// API for sending Test Notifications to Slack
|
|
var Promise = require('bluebird'),
|
|
events = require('../events'),
|
|
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;
|