Ghost/core/server/api/slack.js
Hannah Wolfe 4237446277 Misc cleanup & consistency amends (#9002)
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
2017-09-12 17:31:14 +02:00

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;