12 lines
328 B
PHP
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;
|