Fix
This commit is contained in:
25
controller/WebhookController.php
Normal file
25
controller/WebhookController.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user