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

20
appinfo/routes.php Normal file
View File

@ -0,0 +1,20 @@
<?php
use OCP\AppFramework\Router;
use OCP\IContainer;
$container->registerService('SettingsController', function(IContainer $c) {
return new \OCA\Deckflow\Controller\SettingsController(
$c->query('OCP\IRequest'),
$c->query('OCP\IUserSession'),
$c->query('OCA\Deckflow\Service\WorkflowService')
);
});
// Hier wird die Route für den Webhook definiert
$container->registerService('WebhookController', function(IContainer $c) {
return new \OCA\Deckflow\Controller\WebhookController(
$c->query('OCP\IRequest'),
$c->query('OCA\Deckflow\Service\WorkflowService')
);
});