diff options
Diffstat (limited to 'app/Model/Webhook.php')
-rw-r--r-- | app/Model/Webhook.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app/Model/Webhook.php b/app/Model/Webhook.php deleted file mode 100644 index 7c17e61e..00000000 --- a/app/Model/Webhook.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - -namespace Kanboard\Model; - -/** - * Webhook model - * - * @package model - * @author Frederic Guillot - */ -class Webhook extends Base -{ - /** - * Call the external URL - * - * @access public - * @param array $values Event payload - */ - public function notify(array $values) - { - $url = $this->config->get('webhook_url'); - $token = $this->config->get('webhook_token'); - - if (! empty($url)) { - if (strpos($url, '?') !== false) { - $url .= '&token='.$token; - } else { - $url .= '?token='.$token; - } - - return $this->httpClient->postJson($url, $values); - } - } -} |