mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
61e1b19d46
- This is a precursor to trying to split apart into:
- model events + webhooks system which makes sense
- frontend events which should be independent or removed
- maybe some concept of a settings manager that we can use in various places to bind logic 🤔
- other usages of events that should be refactored to not use events
13 lines
311 B
JavaScript
13 lines
311 B
JavaScript
// Used to call the slack ping service, iirc this was done to avoid circular deps a long time ago
|
|
const events = require('../../lib/common/events');
|
|
|
|
module.exports = {
|
|
docName: 'slack',
|
|
sendTest: {
|
|
permissions: false,
|
|
query() {
|
|
events.emit('slack.test');
|
|
}
|
|
}
|
|
};
|