From b584285ddcc38586894d0044d7d6d8a5a974c473 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 26 May 2016 08:47:52 -0400 Subject: Remove webhook endpoint to create tasks (breaking change) --- app/Controller/Webhook.php | 42 ----------------------------------------- app/Template/config/webhook.php | 6 +----- 2 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 app/Controller/Webhook.php (limited to 'app') diff --git a/app/Controller/Webhook.php b/app/Controller/Webhook.php deleted file mode 100644 index 6e172aeb..00000000 --- a/app/Controller/Webhook.php +++ /dev/null @@ -1,42 +0,0 @@ -checkWebhookToken(); - - $defaultProject = $this->project->getFirst(); - - $values = array( - 'title' => $this->request->getStringParam('title'), - 'description' => $this->request->getStringParam('description'), - 'color_id' => $this->request->getStringParam('color_id'), - 'project_id' => $this->request->getIntegerParam('project_id', $defaultProject['id']), - 'owner_id' => $this->request->getIntegerParam('owner_id'), - 'column_id' => $this->request->getIntegerParam('column_id'), - 'category_id' => $this->request->getIntegerParam('category_id'), - ); - - list($valid, ) = $this->taskValidator->validateCreation($values); - - if ($valid && $this->taskCreation->create($values)) { - return $this->response->text('OK'); - } - - return $this->response->text('FAILED'); - } -} diff --git a/app/Template/config/webhook.php b/app/Template/config/webhook.php index 5db1fa6e..3bba907c 100644 --- a/app/Template/config/webhook.php +++ b/app/Template/config/webhook.php @@ -16,7 +16,7 @@