Files
netconfig/ajax/agent_receive.php
T
2026-05-22 13:55:01 +02:00

12 lines
328 B
PHP

<?php
declare(strict_types=1);
include('../../../inc/includes.php');
header('Content-Type: application/json');
Session::checkLoginUser();
$input = json_decode(file_get_contents('php://input'), true);
$handler = new \PluginNetconfig\Agent\Receive();
echo json_encode($handler($input, 'POST', '/plugin/netconfig/agent'));
exit;