summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controller/Task.php34
1 files changed, 0 insertions, 34 deletions
diff --git a/app/Controller/Task.php b/app/Controller/Task.php
index eddb61d5..7bb989c6 100644
--- a/app/Controller/Task.php
+++ b/app/Controller/Task.php
@@ -13,40 +13,6 @@ use Model\Project as ProjectModel;
class Task extends Base
{
/**
- * Webhook to create a task (useful for external software)
- *
- * @access public
- */
- public function add()
- {
- $token = $this->request->getStringParam('token');
-
- if ($this->config->get('webhooks_token') !== $token) {
- $this->response->text('Not Authorized', 401);
- }
-
- $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->task->create($values)) {
- $this->response->text('OK');
- }
-
- $this->response->text('FAILED');
- }
-
- /**
* Public access (display a task)
*
* @access public