summaryrefslogtreecommitdiff
path: root/app/Controller/Webhook.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-16 20:50:12 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-16 20:50:12 -0400
commitf99a3c501fd6ed7b4914b8d6e855489c2ce5b219 (patch)
tree976276d6acfff78923e4549b0ef9ea94c5e2cb0d /app/Controller/Webhook.php
parent9c9ed02cd7ebc5dbbc99bcaed6f80988ce8a9677 (diff)
Make mail transports pluggable and move integrations to plugins
- Postmark: https://github.com/kanboard/plugin-postmark - Mailgun: https://github.com/kanboard/plugin-mailgun - Sendgrid: https://github.com/kanboard/plugin-sendgrid
Diffstat (limited to 'app/Controller/Webhook.php')
-rw-r--r--app/Controller/Webhook.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/app/Controller/Webhook.php b/app/Controller/Webhook.php
index 1b3a659b..1186680d 100644
--- a/app/Controller/Webhook.php
+++ b/app/Controller/Webhook.php
@@ -92,37 +92,4 @@ class Webhook extends Base
echo $result ? 'PARSED' : 'IGNORED';
}
-
- /**
- * Handle Postmark webhooks
- *
- * @access public
- */
- public function postmark()
- {
- $this->checkWebhookToken();
- echo $this->postmark->receiveEmail($this->request->getJson()) ? 'PARSED' : 'IGNORED';
- }
-
- /**
- * Handle Mailgun webhooks
- *
- * @access public
- */
- public function mailgun()
- {
- $this->checkWebhookToken();
- echo $this->mailgun->receiveEmail($_POST) ? 'PARSED' : 'IGNORED';
- }
-
- /**
- * Handle Sendgrid webhooks
- *
- * @access public
- */
- public function sendgrid()
- {
- $this->checkWebhookToken();
- echo $this->sendgrid->receiveEmail($_POST) ? 'PARSED' : 'IGNORED';
- }
}