labelService->find($this->request->getParam('labelId')); return new DataResponse($label, HTTP::STATUS_OK); } /** * @NoAdminRequired * @CORS * @NoCSRFRequired * * @params $title * @params $color * Create a new label */ public function create($title, $color) { $label = $this->labelService->create($title, $color, $this->request->getParam('boardId')); return new DataResponse($label, HTTP::STATUS_OK); } /** * @NoAdminRequired * @CORS * @NoCSRFRequired * * @params $title * @params $color * Update a specific label */ public function update($title, $color) { $label = $this->labelService->update($this->request->getParam('labelId'), $title, $color); return new DataResponse($label, HTTP::STATUS_OK); } /** * @NoAdminRequired * @CORS * @NoCSRFRequired * * Delete a specific label */ public function delete() { $label = $this->labelService->delete($this->request->getParam('labelId')); return new DataResponse($label, HTTP::STATUS_OK); } }