1<?php
2// phpcs:disable PSR1.Files.SideEffects
3if (!defined('DOKU_INC')) {
4    define('DOKU_INC', realpath(dirname(__FILE__) . '/../../../') . '/');
5}
6define('NOSESSION', 1);
7require_once(DOKU_INC . 'inc/init.php');
8if (!defined('DOKU_TESTING')) {
9    // Main
10    $hook = \dokuwiki\plugin\swarmwebhook\webhooks\AbstractWebhook::getWebhook();
11    $hook->run(file_get_contents('php://input'));
12}
13