diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-15 18:31:47 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-15 18:31:47 -0400 |
commit | 67b836164997527b91452b19adbcb8aa3c5decf1 (patch) | |
tree | b5876d311912e97b0592c7e208639f7b52813a75 /app/Controller/Webhook.php | |
parent | 108e867605dbc7ece4cbcbecc89a674e9c154a9b (diff) |
Refactoring: added controlled middleware and changed response class
Diffstat (limited to 'app/Controller/Webhook.php')
-rw-r--r-- | app/Controller/Webhook.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/Webhook.php b/app/Controller/Webhook.php index 0eafe3e5..6e172aeb 100644 --- a/app/Controller/Webhook.php +++ b/app/Controller/Webhook.php @@ -8,7 +8,7 @@ namespace Kanboard\Controller; * @package controller * @author Frederic Guillot */ -class Webhook extends Base +class Webhook extends BaseController { /** * Webhook to create a task @@ -34,9 +34,9 @@ class Webhook extends Base list($valid, ) = $this->taskValidator->validateCreation($values); if ($valid && $this->taskCreation->create($values)) { - $this->response->text('OK'); + return $this->response->text('OK'); } - $this->response->text('FAILED'); + return $this->response->text('FAILED'); } } |