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 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 app/Controller/Webhook.php (limited to 'app/Controller') 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'); - } -} -- cgit v1.2.3