This commit is contained in:
Patrick Niebeling
2025-03-12 11:11:19 +01:00
parent 4e4ae2b372
commit 7f683fcec1
16 changed files with 211 additions and 154 deletions

View File

@ -0,0 +1,25 @@
<?php
namespace OCA\Deckflow\Controller;
use OCP\AppFramework\Controller;
use OCP\IRequest;
use OCA\Deckflow\Service\WorkflowService;
class WebhookController extends Controller {
private $workflowService;
public function __construct(IRequest $request, WorkflowService $workflowService) {
parent::__construct('deckflow', $request);
$this->workflowService = $workflowService;
}
public function moveCards() {
$deckId = $_POST['deckId'];
$sourceStackId = $_POST['sourceStackId'];
$targetStackId = $_POST['targetStackId'];
$this->workflowService->moveOverdueCards($deckId, $sourceStackId, $targetStackId);
}
}