Ghost/core/server/api/v0.1/slack.js
Katharina Irrgang b43ab65d8a
Moved api controllers into api/v0.1 (#9918)
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!**
2018-09-27 16:06:57 +02:00

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;